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