in reply to Question about UNIVERSAL::can
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Question about UNIVERSAL::can
by schetchik (Beadle) on May 28, 2013 at 08:18 UTC | |
by tobyink (Canon) on May 28, 2013 at 15:13 UTC |