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

jbisbee has asked for the wisdom of the Perl Monks concerning the following question:

Fellow Monks,

I'm looking for the most effcient way of removing blank lines off the end of a text file without reading the whole thing. (the files I'm working with can be up to 3 megs). I need the solution to be fast.

-biz-