People shouldn't do that. The documentation has a warning about that now. Use blessed() from Scalar::Util instead.
I wrote an entire article about this and other traps in The Perl Review's Winter 2005 edition.
In reply to Re^2: Fixing nits with $object->can($method);
by chromatic
in thread Fixing nits with $object->can($method);
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |