print [<FILE>]->[-1];
If you mention such things you should also add that it reads the entire file into memory. That might be a bit overkill...
Another thing that came to my mind, but is restricted to unixy systems:
my $line = `tail -n1 $file`;
In reply to Re^3: Read the last line in a text file
by moritz
in thread Read the last line in a text file
by ganilmohan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |