On Tue, 30 Jul 2002, darren chamberlain wrote:

> So after all the hullabaloo about commify a few weeks ago, I took a
> little while last night to write a plugin/filter wrapper around
> Number::Format. 
> 
> Comments?

Perfect. One question, though: Number::Format takes its constructor args
in CAPS; your plugin appears to want lowercase. Any reason for the
change? A TT thing about CAPS, I'm guessing?

One other thought occurs: I always define a Number::Format object globally
in my apps since it's not going to change and you're just going to access
its methods. Something like:

use vars qw($fnum);
$fnum = Number::Format->new() unless $fnum;

Does TT take care of not reinstantiating unnecessarily, or is there a way
to make it do that?



- nick

~~~~~~~~~~~~~~~~~~~~
Nick Tonkin   {|8^)>





_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://www.template-toolkit.org/mailman/listinfo/templates

Reply via email to