open(FH,"your_file.txt") || die $!;
   my @tmp = readline(*FH);     #this will read each line in your file
   my @second_row =  split(/,/,join('',$tmp[1]),"\n");  #just look at the
second row
   print($second_row[2]);       #third element in array
close(FH);


-----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 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]

Reply via email to