You can to use the derective CALL to avoid printing the return value. So...
[% USE Math %] [% CALL Math.srand(12345) %] -Sean On Tuesday 26 July 2005 01:01 pm, Cahill, Earl wrote: > 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 -- Sean Kellogg 3rd Year - University of Washington School of Law Graduate & Professional Student Senate Treasurer UW Service & Activities Committee Interim Chair c: 206.498.8207 e: [EMAIL PROTECTED] w: http://probonogeek.blogspot.com So, let go ...Jump in ...Oh well, what you waiting for? ...it's all right ...'Cause there's beauty in the breakdown _______________________________________________ templates mailing list [email protected] http://lists.template-toolkit.org/mailman/listinfo/templates
