in reply to Re: nested loops to compare 2 files is only looping a limited number of times.
in thread nested loops to compare 2 files is only looping a limited number of times.
yes, the loops do break on the first failed match of file 1 against file 2.
I can see that that is what is breaking it now that you've pointed it out but I was under the impression that when the inner loop had gone to the end of it's file it would break to the next iteration of the outer loop.
do I need to label the out loop (e.g. LABEL:) and then do something like if (/EOF/) { next LABEL;} then?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: nested loops to compare 2 files is only looping a limited number of times.
by Transient (Hermit) on Jun 23, 2009 at 13:33 UTC |