Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by TimToady (Parson)
on Mar 01, 2005 at 20:12 UTC ( #435596=note: print w/ replies, xml ) Need Help??


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

This can be solved much more generically in Perl 6 with mutator methods and topics:

print "$_\n" for map { .=subst(/er/, 'aler', :global) } @w;
But what you're really asking for is something other than map here, I think...


Comment on Re^2: 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://435596]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2015-07-29 22:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls