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

Re^2: Replace after match in regex (key value subsitution)

by ikegami (Patriarch)
on Oct 23, 2008 at 04:28 UTC ( [id://718945]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $text =~ s/\Q$_\E/$fixers{$_}/g
       for keys %fixers;
    
  2. or download this
    my ($re) = map qr/$_/,
               join '|',
    ...
          for keys %fixers;
       ...
    }
    
  3. or download this
    use List::Regexp qw( );
    
    ...
          for keys %fixers;
       ...
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2024-04-20 05:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found