HYanWong has asked for the wisdom of the Perl Monks concerning the following question:
Hi all. I've got a file handle which I'm using to write many megabytes to a file. When I finish writing, I want to go backwards through the file line-by-line and print out the lines in reverse order to another file. Can I do this without closing the existing file handle, by simply tying the file handle in some way using File::ReadBackwards, or do I have to close the file and open it up anew using the standard File::ReadBackwards syntax?
I'm happy to use any alternative to File::ReadBackwards, if there is one.
|
|---|