You haven't said what you're trying to achieve, but it looks like you are simply opening the same file (called COMPARE) multiple times. Having set $output from the "all_res" file, you don't make use of its value (or any of the $file variables.
If you could tell us what you are expecting the program to do, it might help someone work out why it is not doing that.
In reply to Re: while loop returns same values
by muntfish
in thread while loop returns same values
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |