Subject: | Sub-optimal error handling when out of file handles |
On Windows Server 2003, using something like
% perl -MFile::Temp -e "do { my $fh = File::Temp->new(); File::Temp::unlink0($fh, $fh->filename); } for 0..5000"
does not give a meaningful error message (after creating about 2000 temp files it runs out of file handles); Carp.pm will try to load Carp::Heavy but can't because Perl ran out of file handles. I'm not sure whether this is worth fixing or whether File::Temp is the right module to address this though.