I think it's largely a stylistic choice. I tend to prefer my ($foo, $bar) = @_;. I did, at one point, do timing tests on @_ versus shift. For my test data (which consisted of object references and strings), I found that shift was generally faster for one and two parameters, both approaches were roughly the same for three parameters, and @_ was faster for more than three parameters.
In reply to Re: Shift versus Sanity
by phil_g
in thread Shift versus Sanity
by tadman
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |