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(...);
In reply to Re^3: Do not use UNIVERSAL::isa this way; but why?
by ysth
in thread Do not use UNIVERSAL::isa this way; but why?
by klekker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |