use File::ReadBackwards; my $bw = File::ReadBackwards->new( 'oratabtest.txt' ) or die "can't read 'oratabtest.txt' $!" ; while( my $line = $bw->readline) { print "Last line: $line"; last; }
Eric
In reply to Re: Grab last line and print
by madbombX
in thread Grab last line and print
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |