|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re^2: Global symbol requires explicit package nameby ColonelPanic (Friar) |
| on Nov 28, 2012 at 15:42 UTC ( #1006054=note: print w/ replies, xml ) | Need Help?? |
|
I agree that the original code is not clean. However, your solution makes an unnecessary copy of the array. You could just do this
Though this issue disappears entirely if the sub is switched to pass by reference in order to fix the other problems. When's the last time you used duct tape on a duct? --Larry Wall
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||