Hi Guys,

I have read a log file from backwards, the code is following,

#!/usr/bin/perl
use strict;
use warnings;
use File::ReadBackwards;
my $bw = File::ReadBackwards->new("/log/path") or die $!;
my $line;
while (defined($line = $bw->readline))
{
         print $line;
}
$bw->close();


In the above file i want to read from backwards until  reach a position
that was already processed.. how i can obtain  that??


Thanks,
Siva.

Reply via email to