You dont need to reverse the array...
from Perl Cookbook:
@lines = <FILE>;
while ($line = pop @lines) {
# do something with $line
}
you can also try a "seek" solution.. but i doubt it worth the effort...
On Tue, 2002-06-11 at 17:18, Selector, Lev Y wrote:
> Folks,
>
> Problem:
> need to read a very big text file starting from the end and moving
> backwards to its beginning. This is similar to a diamond ( <FH> ) operator
> functionality - but in the opposite direction. Need to do it without reading
> and reversing the array of lines for the whole file (which would be the
> obvious solution for a short file).
>
> Any suggestions?
>
>
> Warmest Regards,
> Lev Selector
> New York
>
--
Bruno Tavares <[EMAIL PROTECTED]>