Correctition: record number should be 1 not 0
try this version:
open (F, "$file") or die "can't open $!\n";
while ($line = <F>) {
next if $. == 1; # first line is skipped
# do stuff with next line
}
> -----Original Message-----
> From: Kipp, James
> 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 = <IN>) {
> next if $. == 0; # first line is skipped
> # do stuff with next line
> }
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:Charles.Belcher@;mercantile.net]
> > Sent: Thursday, 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 take the 3 element of the array. I
> > am having problems
> > skipping the fist line. Any assistance would be appreciated.
> >
> >
> > Chuck Belcher
> >
> > **************************************************************
> > *********
> > The opinion(s) expressed in this e-mail message are those of
> > the sender
> > alone and do not represent the position of Mercantile Bankshares
> > Corporation or its Affiliates unless specifically so stated herein.
> >
> > Additionally, the information contained in this message is intended
> > only for the persons to whom it is addressed and may contain
> > confidential or privileged material. Copying, distributing,
> > dissemination, reliance on, or other use of the information
> > by persons
> > other than the intended recipient(s) is prohibited. If you received
> > this message in error, please notify the sender and delete
> the entire
> > message from any computer.
> > **************************************************************
> > *********
> >
> >
> >
> > --
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]