aboutsummaryrefslogtreecommitdiff
path: root/devel/p5-Class-Load/pkg-descr
blob: 8179f7ea54b0c749b923de5c90d9e3a2e3906c25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
require EXPR only accepts Class/Name.pm style module names, not Class::Name.
How frustrating! For that, we provide load_class 'Class::Name'.
It's often useful to test whether a module can be loaded, instead of throwing
an error when it's not available. For that, we provide try_load_class
'Class::Name'.
Finally, sometimes we need to know whether a particular class has been loaded.
Asking %INC is an option, but that will miss inner packages and any class for
which the filename does not correspond to the package name. For that,
we provide is_class_loaded 'Class::Name'.

WWW: https://metacpan.org/pod/Class::Load