in reply to shift vs @_
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];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: shift vs @_
by radiantmatrix (Parson) on Oct 06, 2006 at 14:33 UTC | |
by exussum0 (Vicar) on Oct 06, 2006 at 14:39 UTC | |
by radiantmatrix (Parson) on Oct 06, 2006 at 16:36 UTC | |
by exussum0 (Vicar) on Oct 06, 2006 at 20:01 UTC | |
|
Re^2: shift vs @_
by Cop (Initiate) on Dec 23, 2007 at 19:48 UTC | |
by blazar (Canon) on Dec 25, 2007 at 15:24 UTC |