in reply to HTML::Template macros
Another cool thing (possibly overkill) is that each hobbit could be a real object, not just a hash in a list.These are my [% hobbits.size %] favorite hobbits: <ul> [% FOREACH hobbit = hobbits %] <li>[% hobbit.name %]</li> [% END %] </ul>
Oh yeah, you can get rid of the file slurp in your code by using the filehandle attribute instead of the scalarref one:
Much nicer and more efficient. Cheers. :)filehandle => \*DATA,
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: HTML::Template macros
by Anonymous Monk on Dec 05, 2003 at 07:55 UTC |