Working (require Class::Name) and more
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'.
$
pkg install p5-Class-LoadOrigin
devel/p5-Class-Load
Size
52.9KiB
License
ART10, GPLv1+
Maintainer
perl@FreeBSD.org
Dependencies
6 packages
Required by
39 packages
Dependencies (6)
Required By (39)
p5-Apache-AuthCookiep5-App-CLIp5-App-Cmdp5-App-GitGotp5-App-Nopastep5-App-gistp5-Bot-Trainingp5-Bread-Board-Declarep5-Catalyst-Plugin-SmartURIp5-Catalyst-Runtimep5-Class-Load-XSp5-Config-MVPp5-DBIx-Class-Migrationp5-DBIx-Skinnyp5-Dancer-Plugin-Swaggerp5-Data-Rememberp5-Emplackenp5-FCGI-Enginep5-FormValidator-Litep5-HTML-FormHandlerp5-Hailop5-Input-Validatorp5-Masonp5-Mojo-UserAgent-Mockablep5-Moosep5-MooseX-Has-Optionsp5-MooseX-Runnablep5-MooseX-Test-Rolep5-MooseX-Traitsp5-MooseX-Traits-Pluggable+ 9 more