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 reply to Re: Re3: Optimizing a string processing sub
by sauoq
in thread Optimizing a string processing sub
by spurperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |