Re: skip the first line

2002-11-01 Thread Robert Citek
Hello Charles, At 12:22 PM 10/31/2002 -0500, [EMAIL PROTECTED] wrote: > >I have a file that looks like >0 >232,32387,2323 > >I am only interested in the last set of digits on the second line. My plan >was to split on coma and take the 3 element of the array. I am having >problems skipping the fi

RE: skip the first line

2002-11-01 Thread Timothy Johnson
Maybe I'm reading this wrong, but if you're only looking for the third field on the second line, why not just do this: open(INFILE,"myfile.txt") || die "Could not open myfile.txt! $!"; ; #skip the first line $_ = ; my $thirdField = (split /,/,$_

Re: skip the first line

2002-11-01 Thread John W. Krahn
Charles Belcher wrote: > > I have a file that looks like > 0 > 232,32387,2323 > > I am only interested in the last set of digits on the second line. My plan > was to split on coma and take the 3 element of the array. I am having problems > skipping the fist line. Any assistance would be appreci

RE: skip the first line

2002-10-31 Thread Dolling, Neil
Original Message- From: [EMAIL PROTECTED] [mailto:Charles.Belcher@;mercantile.net] Sent: 31 October 2002 17:22 To: [EMAIL PROTECTED] Subject: skip the first line I have a file that looks like 0 232,32387,2323 I am only interested in the last set of digits on the second line. My plan was t

RE: skip the first line

2002-10-31 Thread Kipp, James
s > Sent: Thursday, October 31, 2002 12:32 PM > To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] > Subject: RE: skip the first line > > > > open (F, "$file") or die "can't open $!\n"; > while ($line = ) { > next if $. == 0; # first line i

RE: skip the first line

2002-10-31 Thread Kipp, James
rsday, October 31, 2002 12:22 PM > To: [EMAIL PROTECTED] > Subject: skip the first line > > > > I have a file that looks like > 0 > 232,32387,2323 > > I am only interested in the last set of digits on the second > line. My plan > was to split on coma and tak

skip the first line

2002-10-31 Thread Charles . Belcher
I have a file that looks like 0 232,32387,2323 I am only interested in the last set of digits on the second line. My plan was to split on coma and take the 3 element of the array. I am having problems skipping the fist line. Any assistance would be appreciated. Chuck Belcher