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 |