BSD Ports

devel/p5-enum 1.120nb5 NetBSD

Enumerations for Perl

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
618415630a
License
gnu-gpl-v2 OR artistic
Categories
devel
Package size
9.0 KiB, 18.4 KiB installed

Description

Defines a set of symbolic constants with ordered numeric values ala C enum types.

Now capable of creating creating ordered bitmask constants as well. See the BITMASKS section for details.

What are they good for? Typical uses would be for giving mnemonic names to indexes of arrays. Such arrays might be a list of months, days, or a return value index from a function such as localtime():

use enum qw(:Months_=0 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec);

In the other systems

SystemPortVersion
NetBSDdevel/p5-enum1.120nb5
FreeBSDdevel/p5-enum1.110
OpenBSDdevel/p5-enum1.12v0
DragonFlydevel/p5-enum1.110
HardenedBSDdevel/p5-enum1.110
GhostBSDdevel/p5-enum1.110

Install

Binary package:

pkgin install p5-enum

From pkgsrc:

cd /usr/pkgsrc/devel/p5-enum && 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_641.120nb5
NetBSD 10.1 aarch641.120nb4
SmartOS / illumos x86_641.120nb5
macOS 15 arm641.120nb5

Dependencies

Run dependencies 1

Commit history 1

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