Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by grinder (Bishop)
on Mar 01, 2005 at 13:55 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://435426]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-03-29 00:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found