http://www.perlmonks.org?node_id=394072


in reply to Catching errors in closing lexical filehandles

close $fh or die "..."?



Code is (almost) always untested.
http://www.justicepoetic.net/