If the file is large you might not get great performance so YMMV.
The file is not loaded into memory, so this will work even for gigantic files.
I don't know if Tie::File seeks from the end for large/negative indexes, but it's surely possible for it to do so.
I just read the code... please ignore.
-David
In reply to Re^2: Filehandles vs Uninitialized Values in pattern match
by erroneousBollock
in thread Filehandles vs Uninitialized Values in pattern match
by Flubb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |