Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Rewriting into file

by dHarry (Abbot)
on Jun 20, 2011 at 08:36 UTC ( #910518=note: print w/ replies, xml ) Need Help??


in reply to Rewriting into file

You can also use the -i command-line switch to modify a file in place. See perlrun for details.

(Well it's cheating a little bit, you would still use a temporary file but Perl takes care of the details.)

Cheers

dHarry


Comment on Re: Rewriting into file

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2015-07-02 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (30 votes), past polls