something change if you put $|++; at the top of your code? I suspect yes.
L*
In reply to Re^3: Need sleep walking help by Discipulus in thread Need sleep walking help by Todd Chester