Thank you David for taking the time to explain it.
-Scott
On Tue, 8 Jan 2002, Wagner-David wrote:
> When you do the read, the pointer(best I can think of) is set at the next
>record. Unless you close the file and re-open the file, the next time you do a read
>it will start where you left
would be at
the fifth record.
Wags ;)
-Original Message-- ---
From: Scott [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 08, 2002 06:12
To: Wagner-David
Cc: [EMAIL PROTECTED]
Subject: RE: Stripping records
On Mon, 7 Jan 2002, Wagner-David wrote:
> If straight text, then could j
On Mon, 7 Jan 2002, Wagner-David wrote:
> If straight text, then could just read the first line and start on the second:
> my $MyHdrLine = ; # get first line
> WHILE ( ) {
>}
> You have bypassed first line(has carriage return still with it.
> Now you start yo
> Hi:
>
> I have a file that contains a header row, I want to
> remove the first line and start processing on the second
> line. Would you recommend using seek to scan for the
> last word in the first line?
Another solution is:
# Skip over line 1, adds overhead to all iterations though.
while (
Scott wrote:
>
> Hi:
Hello,
> I have a file that contains a header row, I want to remove the first line
> and start processing
> on the second line. Would you recommend using seek to scan for the last
> word in the first line?
open FILE, $file or die "Cannot open $file: $!";
; # read first
Message-
From: Scott [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 07, 2002 12:00
To: [EMAIL PROTECTED]
Subject: Stripping records
Hi:
I have a file that contains a header row, I want to remove the first line
and start processing
on the second line. Would you recommend using seek to scan
Hi:
I have a file that contains a header row, I want to remove the first line
and start processing
on the second line. Would you recommend using seek to scan for the last
word in the first line?
Thanks,
-Scott
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [