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
| System | Port | Version |
|---|---|---|
| NetBSD | devel/p5-enum | 1.120nb5 |
| FreeBSD | devel/p5-enum | 1.110 |
| OpenBSD | devel/p5-enum | 1.12v0 |
| DragonFly | devel/p5-enum | 1.110 |
| HardenedBSD | devel/p5-enum | 1.110 |
| GhostBSD | devel/p5-enum | 1.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.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 1.120nb5 |
| NetBSD 10.1 aarch64 | 1.120nb4 |
| SmartOS / illumos x86_64 | 1.120nb5 |
| macOS 15 arm64 | 1.120nb5 |