http://www.perlmonks.org?node_id=520181


in reply to Re: Display last record
in thread Display last record

Just move the file pointer to the end of the file minus whatever the maximum record size is, then read everything

Without example code to back it up, this must look quite a bit obscure to a newbee.

Being concerned of large files I would opt for the answer in perlfaq5 to perldoc -q "a line in a file" and use Tie::File.

Cheers, Sören