What are the typical and maximum values of $numFooters? If it's not too big, maybe you could buffer that many lines?
Also, this may provide some inspiration: How do I read a file line by line in reverse order (from EOF to start of file)
In reply to Re: More efficient way to exclude footers
by Anonymous Monk
in thread More efficient way to exclude footers
by babysFirstPerl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |