Just wondering if there is any reason for this code to output a 1.

[% USE Math %]
[% Math.srand(12345) %]

Like, perl srand doesn't return a 1.  I ended up doing something like
this

[% USE Math %]
<!-- [% Math.srand(12345) %] -->

I was also wondering if there's a reason that Template::Plugin::Math is
not on cpan.  I eventually just checked out via cvs and then copied over
Math.pm to the appropriate place.  I couldn't really find it anywhere
else.  For whatever reason, I really did want to use srand in my
template and it was a bit of a pain to get.

A little OT, but my last question is why is the search on cpan not so
hot?  Good luck searching for Template::Plugin::Math.  Looks like quotes
are ignored, since both Template::Plugin::Math and
"Template::Plugin::Math" return the same number of results.  Can I
volunteer to help out search on cpan? 

Thanks,
Earl

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to