good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Re^2: Balancing Coding Time And Code Qualityby hardburn (Abbot) |
on Dec 04, 2003 at 15:01 UTC ( [id://312206]=note: print w/replies, xml ) | Need Help?? |
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. ---- : () { :|:& };: Note: All code is untested, unless otherwise stated
In Section
Meditations
|
|