Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Re3: Optimizing a string processing subby sauoq (Abbot) |
on Jan 08, 2003 at 21:27 UTC ( [id://225361]=note: print w/replies, xml ) | Need Help?? |
The @{[]} is a trick to force list context. Actually, it does a bit more than that. It creates an array. You could have forced list context simply by using parens but a list in scalar context would return the last element in the list rather than the number of elements. So, you did what you had to. :-) -sauoq "My two cents aren't worth a dime.";
In Section
Seekers of Perl Wisdom
|
|