sorry about the confusion. i should have said the file had multiple lines besides the two listed.
i update the file once a week. it is a file with the top 100 stocks this newspaper puts out. so the file will have multiple lines and I guess I am really concerned about the last two lines as that would be the most recent one. I plan to put the results(added/dropped for the current week - still working on the add part) to a file. this will help with my stock research. Once I get that part working I want to keep track of what has moved up or down the array. Hope this makes sense. Alden On Mon, 18 Oct 2004 23:21:52 +0200, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > Alden Meneses wrote: > > if I don't use a loop it seems that it only processes 1st two lines. > > is there another way I can process the file without a loop? > > In your initial post you said: > > "so i have a text file that looks like this > > 10/04/2004 UPL TZOO CME CRDN WIBC PETD SMF > 10/11/2004 UPL TZOO CME WIBC PETD VNBC AMED > > anyway each line has 1 date field and 100 stock symbols and they are > in order. I am trying to compare the different lines to see what has > changed." > > and when I said that the outer loops were redundant, I based it on the > assumption that there are just two lines that you want to compare. > Actually, everything I've said was based on that assumption. > > Maybe it's time that you *really* explain what it is you want to do, > including which lines you want to stuff in which arrays and which arrays > you want to compare with which arrays... > > -- > > > Gunnar Hjalmarsson > Email: http://www.gunnar.cc/cgi-bin/contact.pl > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>