Manasi Bopardikar wrote:
I have a log file-
[ snip ]
How can I get the last entry of this file?
use File::ReadBackwards;
my $bw = File::ReadBackwards->new( 'log_file' ) or die "can't read
'log_file' $!";
my $last_line = $bw->readline;
John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/