Good question. I tried it without the '$'. When it did not work I tried it with the '$'
[% connector1 = '1.2.10.128/29' %] [%- USE c1_net = Net::IP ( connector1 ) -%] connector1 = [% c1_net.prefix %] connector1 = [% c1_net.ip %] [% c1_net.mask %] [% c2_net = c1_net.ip_add_num(2) %] connector2 = [% c2_net.prefix %] returns: connector1 = 1.2.10.128/29 connector1 = 1.2.10.128 255.255.255.248 connector2 = On Tue, Feb 10, 2009 at 10:04 PM, Darren Chamberlain <[email protected]>wrote: > On Tue, Feb 10, 2009 at 21:58, Brian Sherwood <[email protected]> wrote: > > I am trying to use it as follows: > > > > [% c2_net = $c1_net.ip_add_num(2) %] > > Why $c1_net and not c1_net ? > > -- > (darren) > > _______________________________________________ > templates mailing list > [email protected] > http://mail.template-toolkit.org/mailman/listinfo/templates >
_______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
