UNIVERSAL::can() is not designed for checking if a class is loaded. This bug report may shed some light on the matter.
If you just need to check if a module has been loaded, then check %INC (see perlvar). If you care about the subtle difference between modules and packages, try is_class_loaded from Class::Load.
In reply to Re: Question about UNIVERSAL::can
by tobyink
in thread Question about UNIVERSAL::can
by schetchik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |