Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: data manipulationby BillKSmith (Monsignor) |
on Feb 28, 2021 at 21:27 UTC ( [id://11128919]=note: print w/replies, xml ) | Need Help?? |
It really is not possible to overwrite data in file. You must replace the file with edited version of itself. (This would be true of any language) The perl runtime flags /p and /i should be a big help in doing this.
Process the file one line at a time.
If you still have problems, post explicit questions.
Bill
In Section
Seekers of Perl Wisdom
|
|