Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Perl oddities (s/// doesn't DWIM in map)

by ikegami (Pope)
on Mar 01, 2005 at 22:59 UTC ( #435646=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Perl oddities (s/// doesn't DWIM in map)
in thread Perl oddities

my @new = map { local $_ = $_; s/foo/bar/; $_ } @old; also avoids the problem. Probably faster than using two maps, too. Still ugly, unfortunately.


Comment on Re^3: Perl oddities (s/// doesn't DWIM in map)
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://435646]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2014-10-25 03:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (141 votes), past polls