OpenBSD Handbook

Current snapshot · amd64 · Generated 2026-09-09

p5-enum-1.12v0

C style enumerated types and bitmask flags

Back to search · Project homepage

Description

Defines a set of symbolic constants with ordered numeric values ala C enum types. What are they good for? Typical uses would be for giving mnemonic names to indexes of arrays. This not only reads easier, but can also be typo-checked at compile time when run under use strict. That is, if you misspell Days_Fri as Days_Fry, you'll generate a compile error. Also capable of creating ordered bitmask constants, allowing the easy creation of bitmask constants, allowing you to efficiently store many true/false options within a single integer.

Package information

Ports path
devel/p5-enum
Package architecture
*
Maintainer
The OpenBSD ports mailing-list <ports@openbsd.org>
Categories
devel, perl5
Available flavors
None listed

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

None listed in sqlports.

Used by (3 dependency relationships)

Includes library, runtime, build and test relationships. Results load 100 at a time.

Installing and updating packages · Package details as JSON