2008/9/10  <[EMAIL PROTECTED]>:
> Hi All,
>
> i want get the time specified in last line of the file.
> For eg:
> $tail -2 test.log
> 2008 aug 25 14:48:42.800 Sending ping message;
> 2008 aug 25 14:48:43.390 Sending ping message;
> The file size is huge, so i dont want to read the entire file to get
> the last line. Is there any way to get the last line of a file
> directly in perl?

The unix tail's Perl extension is File::Tail:
http://search.cpan.org/~mgrabnar/File-Tail-0.99.3/Tail.pm

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to