http://www.perlmonks.org?node_id=576058


in reply to shift vs @_

My favourite reason to use shift, that's not necessarily right, but right for me? I can't easily do my $x, $y = @_;

It's valid perl. It assigns a scalar. You will likely run into the bug right away, but who knows when, eh?

I can't do the equiv w/ shift in the form of...

my $x = shift; my $y = shift;
Unless i do..
my $x = $_[0]; my $y = $_[1];
Now I have to worry about indicies. At least shift requires none.