doh! Don't visit PerlMonks when tired from 12 hours of driving and a cold.
In reply to Re^4: print() on closed filehandle by ikegami in thread print() on closed filehandle by leonardshoh