- or download this
use File::ReadBackwards ;
# Object interface
$bw = File::ReadBackwards->new( '$file' ) or
die "can't read '$file' $!" ;
- or download this
#!/usr/bin/env perl
use strict;
...
while (defined (my $log_line = $bw->readline)) {
print $log_line;
}
- or download this
$ cat weblog.log
first line
...
second line
first line
$