This isn't a problem, but a request for discussion. What's the real difference between using these techniques to get the values of parameters in a subroutine:
I've seen all three methods used (and probably at least one other). In my opinion the third method is horrendous, and the second cumbersome (guess which one I use).
Comments?
Code:
my($p1,$p2,$p3) = @_;
my $p1 = shift;
my $p2 = shift;
my $p3 = shift;
my $p1 = @_[0];
my $p2 = @_[1];
my $p3 = @_[2];
Comments?