Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Find pieces of text in a file enclosed by `@` and replace the inside

by bart (Canon)
on Mar 08, 2013 at 11:44 UTC ( #1022397=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    s/\@(.*?)\@/ ... /g;
    
  2. or download this
    s<\@(.*?)\@>{ ... }ge;
    
  3. or download this
    while(<>) {
        s/\@(.*?)\@/ subst($1) /ge;
    ...
        $s =~ s/([a-eA-C])/$r{$1}/g;
        return $s;
    }
    
  4. or download this
        s/\@(.*)\@/ subst($1) /ge;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1022397]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2016-12-08 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (146 votes). Check out past polls.