Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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?
[marto]: so I have to work Saturday, which is good and bad. Bad in the sense that I have to be hear early :( Good in that I am here only as support for another client project, so I get to spend the day working on my personal 'ToDo' list, without the kids :P

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2017-02-28 10:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (399 votes). Check out past polls.