in reply to Grab last line and print

1) If the file is short:

eof and print while <$file>;

2) If the file is long, check out File::ReadBackwards

Replies are listed 'Best First'.
Re^2: Grab last line and print
by Anonymous Monk on Aug 25, 2006 at 19:21 UTC
    Thanks it works great.

    I have been on many many forums and this Perl Monks is by far the best. Everytime I have posted, I get multiple responses and guidance form experts in a very quick amount of time!

    Thanks again!!!