devel/p5-Class-Default 1.51_1 DragonFly
Static calls apply to a default instantiation
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 9.6 KiB, 17.1 KiB installed
Description
Class::Default provides a mechanism to allow your class to take static method calls and apply it to a default instantiation of an object. It provides a flexibility to an API that allows it to be used more comfortably in different situations.
This technique appears to be especially useful when writing modules that you want to be used in either a single use or a persistent environment. In a CGI like environment, you want the simplicity of a static interface. You can call Class-method> directly, without having to pass an instantiation around constantly.
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | devel/p5-Class-Default | 1.51_1 |
| FreeBSD | devel/p5-Class-Default | 1.51_1 |
| OpenBSD | devel/p5-Class-Default | 1.51p2 |
| HardenedBSD | devel/p5-Class-Default | 1.51_1 |
| GhostBSD | devel/p5-Class-Default | 1.51_1 |
Install
Binary package:
pkg install p5-Class-Default
From DPorts:
cd /usr/dports/devel/p5-Class-Default && make install clean