I am a programmer of many years but have not previously had the need to venture into Perl. I have found it so far to be very complete and straight forward but can't seem to find an answer to this:
It seems that the file I/O is to sequential text files. Is there an easy way to replace a record in the middle of the file other than reading them in record by record, rewriting them to a new file, changing and writing the record desired and then rewriting all of the following records, then deleting the old file and renaming the new file to the old name? From what I can find in documentation, that appears to be A way but is there a better one?
In reply to File I/O
by ced4dad