![]() |
|
"be consistent" | |
PerlMonks |
Re^2: Differ. array and Listby halley (Prior) |
on Apr 26, 2005 at 13:38 UTC ( #451567=note: print w/replies, xml ) | Need Help?? |
No, there is no distinction in contexts, as far as return values from subroutines are concerned; I believe Larry Wall has admitted that the name really should be wantlist. The output is a list which can be used as-is or assigned to an array (or hash or whatever) if desired.
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(). --
In Section
Seekers of Perl Wisdom
|
|