in reply to
Grab last line and print
Hi,
I am pretty sure the following would work (assuming a unix or linux platform):
$lastLine = `tail -1 <fileName>`;
[download]
It just uses the linux tail function. I know windows has a tail-like function that you can download.
Tony
Comment on
Re: Grab last line and print
Download
Code
In Section
Seekers of Perl Wisdom