P is for Practical | |
PerlMonks |
Re^4: Closure producing 'Modification of read-only value' errorby nobull (Friar) |
on Jun 11, 2005 at 19:09 UTC ( [id://465834]=note: print w/replies, xml ) | Need Help?? |
map, grep, for etc do the right thing.
The magic while construct does not make $_ and alias - it assigns to it. This is fundamentally different. That said, it bugs me that it doesn't do implicit localization.
In Section
Seekers of Perl Wisdom
|
|