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


in reply to How to read last lines from file?

Go to http://search.cpan.org/ and search for a module that does it for you. There are many date and time related modules that can help you, and File::ReadBackwards can do the "read from the end" part.