Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Off-topic Perl Question
I know that this is not the forum to ask perl questions. But is there some one who can help me on how to read two lines at a time using a Perl script
My script looks like this :
open(FILE_IN, "<$datafile") or die "Cannot open $datafile...\n";
while(<FILE_IN>)
{ chomp; @fields = split(/;/); print ("Processing line $. for emission...\n"); PROMPT Processing $. for emission ... ($cField1, $cField2, $cField3) = @fields[0..2]; ... and so on
In this case, as you see, it takes only a line at a time and I would to consider couple of lines at a time.
Is it possible to do it and how ?
Please help.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: ALEMU Abiy
INET: abiy.alemu_at_criltelecom.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Fri Jan 25 2002 - 08:49:01 CST