RE: Faster way to go to a line in a file

2002-09-27 Thread Rowe, Sean D.
never mind, i found it. -Original Message- From: Rowe, Sean D. [mailto:[EMAIL PROTECTED]] Sent: Friday, September 27, 2002 8:40 AM To: Janek Schleicher; [EMAIL PROTECTED] Subject: RE: Faster way to go to a line in a file Where can I find the Tie module on cpan? I'm not sure whe

RE: Faster way to go to a line in a file

2002-09-27 Thread Rowe, Sean D.
To: [EMAIL PROTECTED] Subject: Re: Faster way to go to a line in a file Sean D. Rowe wrote at Thu, 26 Sep 2002 20:54:49 +0200: > Right now, to get to a certain line number, I will open the file, set a for > loop to get a line until line number is reached, and then quit. Is there a > faster

Re: Faster way to go to a line in a file

2002-09-27 Thread Janek Schleicher
Sean D. Rowe wrote at Thu, 26 Sep 2002 20:54:49 +0200: > Right now, to get to a certain line number, I will open the file, set a for > loop to get a line until line number is reached, and then quit. Is there a > faster way? > > ex: for (my $i = 1; $i <= $LineNumber; $i++) > { >

Faster way to go to a line in a file

2002-09-27 Thread Rowe, Sean D.
Right now, to get to a certain line number, I will open the file, set a for loop to get a line until line number is reached, and then quit. Is there a faster way? ex: for (my $i = 1; $i <= $LineNumber; $i++) { $Line = $FileHandle->getline; } Thanks. Sean --