in reply to Re: HTML::Template question - tmpl_if
in thread HTML::Template question - tmpl_if
Actually perl doesn't mid a bit if you have too many commas in a list, and in fact I've heard monks advocate a trailing comma to make it easier later to expand the list. I avoid doing it myself but mostly for aesthetic reasons.
Note that perl even gets the length of the array correct.use strict; use warnings; my @list = ('foo', 'bar',,,,'baz',,,,); print "Item $_\n" for @list; print "Length " . scalar @list."\n";
"The dead do not recognize context" -- Kai, Lexx
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: HTML::Template question - tmpl_if
by punkish (Priest) on Dec 14, 2003 at 18:48 UTC |
In Section
Seekers of Perl Wisdom