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...
Unless i do..my $x = shift; my $y = shift;
Now I have to worry about indicies. At least shift requires none.my $x = $_[0]; my $y = $_[1];
In Section
Seekers of Perl Wisdom