See File::ReadBackwards:
use warnings; use strict; use File::ReadBackwards; my $bw = File::ReadBackwards->new('/var/log/maillog') or die $!; while (defined( my $line = $bw->readline )) { chomp($line); print "<$line>\n"; } $bw->close;
In reply to Re: print a file from Bottom to Top (reverse order)
by haukex
in thread print a file from Bottom to Top (reverse order)
by theravadamonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |