Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Replace text in file

by Laurent_R (Canon)
on Apr 17, 2014 at 07:45 UTC ( [id://1082605]=note: print w/replies, xml ) Need Help??


in reply to Replace text in file

There are numerous ways to achieve what you want. For the substitution itself, the only thing that might be slightly beyond a pure beginner's knowledge, the first idea that comes to mind is to use the substitution operator, s///. You'll find detailed documentation on this in this chapter Regexp Quote Like Operators of the perlop document. Look in particular at the s/PATTERN/REPLACEMENT/msixpodualgcer sub-chapter and at the e option modifier.

Log In?
Username:
Password:

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

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

    No recent polls found