Subject: | $! becomes 'Bad file descriptor' calling with path names always. |
When calling functions with a path name for existing files:
I got $! ($ERRNO) = 9 (EBADF, 'Bad file descriptor') except for $! = 0.
sub _is_fh
{
my $file = shift;
my $is_fh = 0;
eval
{
local $!; # <== missing ?