The Blue Camel has this to say about map on page 741:
Because $_ is an alias (implicit reference) into the list's values, this variable can be used to modify the elements of the array.
So you'll be modifying the orginal value, weather it was a list of references or not. Mearly chomping the value, as the code posted does, is unlikely to do real harm, so I wouldn't consider it a problem in this case.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
In reply to Re: Re^2: Balancing Coding Time And Code Quality
by hardburn
in thread Balancing Coding Time And Code Quality
by Limbic~Region
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |