Above and beyond the exelent answers above, I'd just like to note that in newer perls, that works exactly as you wrote it -- it's special-cased in the source. I think the change is as of 5.6, but I can't seem to find it in the perldelta* manpages.
Thanks,
James Mastros,
Just Another Perl Scribe
In reply to Re: list returned from function
by theorbtwo
in thread list returned from function
by hotshot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |