Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Edit File in place

by spurperl (Priest)
on Aug 13, 2002 at 13:23 UTC ( [id://189779]=note: print w/replies, xml ) Need Help??


in reply to Edit File in place

Reading the file, modifying and writing back is really not so bad of a solution. Especially if there is a lot to change, as seems to be in your case. IMHO, this provides a clean solution (you can have a backup of the original file easily, for exmaple), that is relatively easy to implement. So, unless you have a very special case in which you *must not* read-process-write the file, use this solution.

Replies are listed 'Best First'.
Re: Re: Edit File in place
by RollyGuy (Chaplain) on Aug 13, 2002 at 14:12 UTC
    I hadn't thought about the backup aspect of the edit process. I think that will be useful. Thanks for your comments.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-26 00:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found