in reply to how to read a file in backwards?
If it's just a small file you could load every line into an array and reverse the array :
You can treat each line with a foreach over the array, but it may not fit your need if you really want to read one line at a time from the original file.open FFF, "< toctoc.txt " ; my @slurp = (<FFF>) ; print reverse @slurp ;
ZlR
|
|---|