in reply to Re: Strange output problem
in thread Strange output problem

Thanks! It looks like that was the problem. I simply added a

 close $out_file;

between the two parts of the program, and the output is now correct. I'd never have thought of that .. better get into the habit of closing filehandles when I'm done with them!

Thanks again.