BSD Ports

devel/p5-Class-Load 0.25 DragonFly

Working (require Class::Name) and more

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
devel, perl5
Package size
15.5 KiB, 53.1 KiB installed

Description

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 %25INC 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'.

In the other systems

SystemPortVersion
DragonFlydevel/p5-Class-Load0.25
FreeBSDdevel/p5-Class-Load0.25
OpenBSDdevel/p5-Class-Load0.25p0
NetBSDdevel/p5-Class-Load0.25nb9
MidnightBSDdevel/p5-Class-Load0.25
HardenedBSDdevel/p5-Class-Load0.25
GhostBSDdevel/p5-Class-Load0.25

Install

Binary package:

pkg install p5-Class-Load

From DPorts:

cd /usr/dports/devel/p5-Class-Load && make install clean

Dependencies

Run dependencies 6