Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2017-04-25 04:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (448 votes). Check out past polls.