I am learning Perl and loving it. Perl is cool.......not as cool as APL but nonetheless cool. Here is my question. I have to read into a file for a particular string in a record. The "strings" occur in different records. I then call a subroutine and within the subroutine need to be able to reference previous records to extract information. (ex. I find my "target string" on line/record 8, from my subroutine I want to go back to line/record 4 and parse information on several records coming forward from line/record 4)
 
I guess what I am asking is how in the Perl do you set the read pointer??
 
TIA
 
 
--
-------------------------------------------------------------------------
"They that can give up essential liberty
   to obtain a little temporary safety
   deserve neither liberty  nor safety."                     
 
-- Benjamin Franklin
-------------------------------------------------------------------------
RRRRR                Gary Luther
RR  RR               SAF
RR  RR UTABEGAS      2500 Broadway
RR RR                Helena, MT 59602
RRRR                 [EMAIL PROTECTED]
RR RR  ULE !!       
RR  RR               Visit our website at
RR   RR              http://www.safmt.org
BEGIN:VCARD
VERSION:2.1
X-GWTYPE:USER
FN:Gary Luther
TEL;WORK:0631
ORG:;Computer Center
TEL;PREF;FAX:(406) 444-0684
EMAIL;WORK;PREF;NGW:[EMAIL PROTECTED]
N:Luther;Gary
TITLE:Systems Administrator
END:VCARD

Reply via email to