devel/p5-Class-Load 0.25nb9 NetBSD
Provide a working (require "Class::Name") and more
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- Last update
- Commit
618415630a- License
- gnu-gpl-v2 OR artistic
- Categories
- devel, perl5
- Package size
- 10.0 KiB, 22.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 %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'.
In the other systems
| System | Port | Version |
|---|---|---|
| NetBSD | devel/p5-Class-Load | 0.25nb9 |
| FreeBSD | devel/p5-Class-Load | 0.25 |
| OpenBSD | devel/p5-Class-Load | 0.25p0 |
| DragonFly | devel/p5-Class-Load | 0.25 |
| MidnightBSD | devel/p5-Class-Load | 0.25 |
| HardenedBSD | devel/p5-Class-Load | 0.25 |
| GhostBSD | devel/p5-Class-Load | 0.25 |
Install
Binary package:
pkgin install p5-Class-Load
From pkgsrc:
cd /usr/pkgsrc/devel/p5-Class-Load && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 0.25nb9 |
| NetBSD 10.1 aarch64 | 0.25nb8 |
| SmartOS / illumos x86_64 | 0.25nb9 |
| macOS 15 arm64 | 0.25nb9 |