Re: [Templates] Net::IP

2009-02-11 Thread Dave Howorth
Brian Sherwood wrote: ... > I don't seem to be getting an error, or any kind of output. ... > Any help/suggestions are welcome. Nobody has mentioned the general answer to your question yet. Have you tried debugging it? Specifica

Re: [Templates] Net::IP

2009-02-11 Thread Brian Sherwood
Thank you all. A lot of good ideas, but so far no luck :( Simon recommended writing a plugin, or wrapping Net::IP using Template::Plugin::Class I tried using the Template::Plugin::Class, but it would throw an exception. I used the following code: [% connector1 = '1.2.10.128/29' %] [% USE c1_net

Re: [Templates] Net::IP

2009-02-11 Thread Josh Rosenbaum
Brian Sherwood wrote: [SNIP] > Someone also recommended instantiating the object in the perl code and > passing it in the vars hash when I call the template toolkit. This is a > good idea, but I don't know how many Net::IP objects I will need before > the template is called. I don't know the i