use File::ReadBackwards; my $file = "/path/to/myfile.txt"; my $bw = File::ReadBackwards->new($file) or die "Cannot read $file - $!"; my $last_line = $bw->readline; $bw->close;
In reply to Re: Find last line in Text file parsing
by repellent
in thread Find last line in Text file parsing
by selva
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |