Re: help on comparing lines in a text file

2004-10-18 Thread Alden Meneses
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

Re: help on comparing lines in a text file

2004-10-18 Thread Alden Meneses
thanks again - GH 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? On Mon, 18 Oct 2004 19:02:04 +0200, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > Alden Meneses wrote: > > here is my updat

Re: help on comparing lines in a text file

2004-10-18 Thread Alden Meneses
e komodo from activestate to help write my perl scripts. When I use the while loop it complains about the @array_a and @array_b in the subroutine thus I get a compile error when running. can someone tell me what I am doing wrong? TIA, Alden On Sat, 16 Oct 2004 22:34:59 +0200, Gunnar Hjalmarsson &

Re: help on comparing lines in a text file

2004-10-16 Thread Alden Meneses
unless exists $seen{$item}; print @bonly; } } } close(IBDINA); close(IBDINB); also i haven't thought about end of file as you can see in the loops i process line 0 and line 1 but didnt think about if the EOF is not an even count. On Mon, 11 Oct 2004 22:57:51 -0700, Alden Menese

help on comparing lines in a text file

2004-10-11 Thread Alden Meneses
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. so I open the file