in reply to shift vs @_
I think the "shift" idiom caught on out of laziness, though it's not as slick with more than one argument. You can write:
Likewise, you can write:my $var1 = shift; my $var2 = shift;...
for only one argument.my ($var)=@_;
Hays
|
|---|