Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Perl Script to edit the contents of a txt file

by Rudolf (Pilgrim)
on Sep 12, 2012 at 07:12 UTC ( #993155=note: print w/replies, xml ) Need Help??


in reply to Perl Script to edit the contents of a txt file

To edit the file, your going to have to copy the entire thing into perl, I would suggest into an array. And then make your changes there afterwhich you can write back to the file as a clean slate to preform your edit.

  • Comment on Re: Perl Script to edit the contents of a txt file

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://993155]
help
Chatterbox?
NodeReaper wonders through a maze of twisty little sayings, all alive

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2016-12-09 07:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (148 votes). Check out past polls.