in reply to tail -1 emulation efficiency
How about this:
use Tie::File; use strict; my @ry=(); tie @ry,"Tie::File","myfile" or die "$!"; my $line=$ry[$#ry]; untie @ry; print $line;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: tail -1 emulation efficiency
by woodstea (Sexton) on May 06, 2004 at 03:11 UTC |