William Black wrote:
> 
> Hi all,

Hello,

> I have a quick question about seek().  If I have a file with 100 lines of
> data and I want to seek to the last line of the file and read it. How is
> this done?  Below is what I'm trying to do. A little help please.

use File::ReadBackwards;

my $bw = File::ReadBackwards->new( 'x.pl' ) or die "Cannot read 'x.pl':
$!";

my $last_line = $bw->readline;


http://search.cpan.org/search?dist=File-ReadBackwards



John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to