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

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

by grinder (Bishop)
on Mar 01, 2005 at 13:55 UTC ( #435426=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @w= qw/ per coercer berserker / ;
    print "$_\n" for map { s/er/aler/g } @w;
    
  2. or download this
    my @w = qw/ per coercer berserker / ;
    print "$_\n" for map { s/er/aler/g; $_ } @w;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2015-07-31 21:56 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 (282 votes), past polls