Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 contemplating the Monastery: (21)
As of 2014-07-31 18:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (250 votes), past polls