BSD Ports

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.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
NetBSDdevel/p5-constant-defer6nb5 newestnone known-[email protected]2026-07-16
FreeBSDdevel/p5-constant-defer6 newestnone known-[email protected]-
DragonFlydevel/p5-constant-defer6 newestnone known-[email protected]-
HardenedBSDdevel/p5-constant-defer6 newestno data-[email protected]-
GhostBSDdevel/p5-constant-defer6 newestno data-[email protected]-

Compare across BSDs

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.

RepositoryVersion
NetBSD 10.1 x86_646nb5
NetBSD 10.1 aarch646nb5
SmartOS / illumos x86_646nb5
macOS 15 arm646nb5

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.

Dependencies

Run dependencies 1

Commit history 1

DateCommitCreditsLog message
618415630a wiz *: recursive bump for perl5 5.44.0