in reply to Re^2: Do not use UNIVERSAL::isa this way; but why?
in thread Do not use UNIVERSAL::isa this way; but why?

Or do:
use Scalar::Util 'blessed'; my $answer = blessed($fd) && $fd->isa(...);
which is better in that it allows you to stipulate that $fd is an object, not a class name.