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.20.tar.gz | 0000020271 19.8 KB | |
perl-Class-Load-old_test_more.patch | 0000008855 8.65 KB | |
perl-Class-Load.changes | 0000004169 4.07 KB | |
perl-Class-Load.spec | 0000003092 3.02 KB |
Revision 12 (latest revision is 20)
Stephan Kulow (coolo)
accepted
request 177362
from
Stephan Kulow (coolo)
(revision 12)
- updated to 0.20 - The load_class() subroutine now returns the class name on success. Requested by Caleb Cushing. RT #76931. - Exceptions and errors from Class::Load no longer contain references to line numbers in Class::Load or Module::Runtime. This applies to exceptions thrown by load_class, load_first_existing_class, and load_optional_class, as well as the error returned by try_load_class. - Exceptions are now croaked properly so they appear to come from the calling code, not from an internal subroutine. This makes the exceptions look more like the ones thrown by Perl's require. RT #68663. (forwarded request 177281 from coolo)
Comments 0