Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by ikegami (Patriarch)
on Oct 23, 2008 at 04:28 UTC ( #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? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2023-01-29 20:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?