A working require "Class::Name" and more
http://search.cpan.org/dist/Class-Load
"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'".
- Developed at devel:languages:perl
- Sources inherited from project openSUSE:Factory
-
2
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Factory:PowerPC/perl-Class-Load && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
Class-Load-0.17.tar.gz | 0000019325 18.9 KB | |
perl-Class-Load.changes | 0000003057 2.99 KB | |
perl-Class-Load.spec | 0000002970 2.9 KB |
Revision 7 (latest revision is 20)
Stephan Kulow (coolo)
accepted
request 104261
from
Stephan Kulow (coolo)
(revision 7)
- updated to 0.17 - A bug in Class::Load caused test failures when Module::Runtime 0.012 was used with Perl 5.8.x. Reported by Zefram. RT#74897. ( Jesse Luehrs ) - Require Module::Runtime 0.012, which has a number of useful bug fixes. - Small test changes to accomodate latest version of Module::Implementation. There's no need to upgrade if you're already using 0.14 - Use Module::Implementation to handle loading the XS or PP versions of the code. Using this module fixes a few bugs. - Under taint mode, setting an implementation in the CLASS_LOAD_IMPLEMENTATION env var caused a taint error. - An invalid value in the CLASS_LOAD_IMPLEMENTATION env var is now detected and reported immediately. No attempt is made to load an invalid implementation. - Fix some bugs with our use of Try::Tiny. This could cause warnings on some systems with Class::Load::XS wasn't installed. Fixes RT#72345.
Comments 0