in reply to Reading the last line of a file in a Pure Way.

One more™

use IO::All; my $file = shift || die "Give me the file, man!\n"; print io($file)->backwards->getline;

Replies are listed 'Best First'.
Re^2: Reading the last line of a file (Pure Way?)
by Aristotle (Chancellor) on Aug 23, 2004 at 21:28 UTC

    Sigh. For some reason, every time I see a new example of IO::All, my feeling of "this is wrong" gets even stronger. I appreciate Ingy's valiant attempt for more DWIMmery, but a lot of his APIs give me the heebie jeebies.

    Makeshifts last the longest.