in reply to No print after closing FH

Add

select(STDOUT);
after you have closed(FH). Your leaving FH selected, so your prints are failing.

If you had warnings enabled you would be seeing

print() on closed filehandle FH at ....

which is a really good reason for using it:)


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller