[Classiccity-pm] perl curiosity..
Shawn Boyette
mdxi at collapsar.net
Thu Aug 5 10:04:01 CDT 2004
On Thu, Aug 05, 2004 at 10:29:29AM -0400, Darrell Golliher wrote:
>
> So I'm reading someone elses code and come acrosse something like
> this..
>
> @things = qw(one two three);
> print $things[-1];
Yar, it's Standard Perl Idiom (it's in the Llama, even)
> Indexing it with -1 looks ugly to me.
Heh. I always thought it made a lot of sense :)
--
Shawn Boyette
mdxi at collapsar.net
More information about the Classiccity-pm
mailing list