Thanks for the reply. That fixed the issue. So your saying that during the first iteration, it wrote to the initialized value, and on the second iteration, the value wasn't changed until after the print , so it put the print in twice on the same file. Ugh! Why do things look so much simpler after they've been solved? Thanks for your help!!
I reopened the same file because Perl was saying I was trying to print to a closed filehandle. I was thinking that when I opened INFILE that it may have made LOGF close, so I reopened it.
In reply to Re^2: Perl printing in the wrong order
by druisgod
in thread Perl printing in the wrong order
by druisgod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |