in reply to Re^3: Reassigning $_ in loop doesn't stick
in thread Reassigning $_ in loop doesn't stick
Both grep and map operate on aliases in their block, as you show.
What ikegami is showing is that grep will return aliases to the elements of the list it worked on while map will return copies (even if it hasn't modified them).
|
|---|