in reply to Re^5: Global symbol requires explicit package name
in thread Global symbol requires explicit package name
The first example doesn't provide equivalent functionality, however. When an array slice is passed normally, modifying @_ will modify the original array. But this makes an anonymous copy of the array slice, which is discarded after the function call.
When's the last time you used duct tape on a duct? --Larry Wall
When's the last time you used duct tape on a duct? --Larry Wall
|
---|
In Section
Seekers of Perl Wisdom