Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: how to substitute a word in a file by perl

by hdb (Monsignor)
on Aug 31, 2013 at 13:36 UTC ( [id://1051730]=note: print w/replies, xml ) Need Help??


in reply to how to substitute a word in a file by perl

And what exactly are you having problems with? Read the file line by line, do a global substitution of wood versus food, write into a temp file. Delete input and rename temp file to original name.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-04-18 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found