in reply to how can i read only the last line of a files

Try looking at either File::ReadBackwards or Tie::File.

--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

  • Comment on Re: how can i read only the last line of a files

Replies are listed 'Best First'.
Re^2: how can i read only the last line of a files
by Anonymous Monk on Aug 03, 2006 at 16:13 UTC
    Hi, If you are trying to read last line of continously updated files (like weblog file), I think your best choice would be File::Tail inconjuction with Proc::Daemon. Thanks, Uday.