Subject: | Stop the use of eval { $something->isa('IO::Handle') } |
The following needs to be upgraded to use either Scalar::Util::blessed,
or a cloned copy of Params::Util::_HANDLE.
It's more correct that way, and more importantly it's generating a
crap-ton of spurious DIE handler events in Padre's debugging code.
sub _type {
my ( $redir ) = @_;
return "FH" if eval { $redir->isa("IO::Handle") };
my $type = ref $redir;
return $type eq "GLOB" ? "FH" : $type;
}