in reply to Re^2: Balancing Coding Time And Code Quality
in thread Balancing Coding Time And Code Quality
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Balancing Coding Time And Code Quality
by Coruscate (Sexton) on Dec 04, 2003 at 19:50 UTC | |
Re: Re: Re^2: Balancing Coding Time And Code Quality
by parv (Parson) on Dec 04, 2003 at 22:18 UTC |