in reply to Re^2: Differ. array and List
in thread Differ. array and List
However, there are some subs which expect their arguments to be array variables (because the variable's data will be altered). Examples include pop() and shift().
I think this is incorrect. Any list of arguments supplied to a subroutine are inserted into the array @_ and pop and shift handle that accordingly. There's no such thing as subs expecting array variables.
I think this is incorrect. Any list of arguments supplied to a subroutine are inserted into the array @_ and pop and shift handle that accordingly. There's no such thing as subs expecting array variables.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Differ. array and List
by halley (Prior) on Apr 26, 2005 at 16:02 UTC | |
by Jasper (Chaplain) on Apr 27, 2005 at 12:15 UTC |
In Section
Seekers of Perl Wisdom