Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: regexp wizardry needed

by Corion (Pope)
on Jan 25, 2013 at 17:13 UTC ( #1015376=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $result = $example =~ s/foo/bar/r;
    
  2. or download this
    (my $result=$example) =~ s/foo/bar/;
    
  3. or download this
    ...
        map { (my $result=$_) =~ s/foo/bar/; $result } @elements
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015376]
help
Chatterbox?
[choroba]: WYWIWYG = What You Want Is What You Get
[LanX]: Bishop LanX starts singing: ♪..♫ I want it all ...♩..♬
LanX ♪..♫ ...and I want it now!!! ♩..♬

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2017-09-20 15:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (237 votes). Check out past polls.

    Notices?