devel/p5-constant-defer 6nb5 NetBSD
constant subs with deferred value calculation
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- Last update
- Commit
618415630a- License
- gnu-gpl-v3
- Categories
- devel, perl5
- Package size
- 11.0 KiB, 27.6 KiB installed
Description
constant::defer creates a subroutine which on the first call runs given code to calculate its value, and on any subsequent calls just returns that value, like a constant. The value code is discarded once run, allowing it to be garbage collected.
Deferring a calculation is good if it might take a lot of work or produce a big result but is only needed sometimes or only well into a program run. If it's never needed then the value code never runs.
In the other systems
The newest version among them is 6, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| NetBSD | devel/p5-constant-defer | 6nb5 newest | none known | - | [email protected] | 2026-07-16 |
| FreeBSD | devel/p5-constant-defer | 6 newest | none known | - | [email protected] | - |
| DragonFly | devel/p5-constant-defer | 6 newest | none known | - | [email protected] | - |
| HardenedBSD | devel/p5-constant-defer | 6 newest | no data | - | [email protected] | - |
| GhostBSD | devel/p5-constant-defer | 6 newest | no data | - | [email protected] | - |
Install
Binary package:
pkgin install p5-constant-defer
From pkgsrc:
cd /usr/pkgsrc/devel/p5-constant-defer && 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 | 6nb5 |
| NetBSD 10.1 aarch64 | 6nb5 |
| SmartOS / illumos x86_64 | 6nb5 |
| macOS 15 arm64 | 6nb5 |
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.