RollyGuy has asked for the wisdom of the Perl Monks concerning the following question:
At work I need to edit a file to add a comment character on some lines and also replace some multi-line strings with others. My first take is to slurp all of the lines of the file into an array, edit the lines one by one, and then write out the array back to the file. It seems to me that there should be a way to edit the file in place. So, how it that done?
Back to
Seekers of Perl Wisdom