in reply to
map and modifying $_
@goo is a named array. However, if you use a list of some sort:
map { s/\d/\\d/ } (1, 2, 3, 4);
you'll get happy error messages like
Modification of a read-only value attempted at - line 1.
Comment on
(chromatic) Re: map and modifying $_
Select
or
Download
Code
In Section
Seekers of Perl Wisdom