Path to this page:
./
devel/p5-enum,
Enumerations for Perl
Branch: CURRENT,
Version: 1.120nb3,
Package name: p5-enum-1.120nb3,
Maintainer: pkgsrc-usersDefines 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);
Required to run:[
lang/perl5]
Required to build:[
pkgtools/cwrappers]
Master sites: (Expand)
Filesize: 14.559 KB
Version history: (Expand)
- (2024-11-16) Updated to version: p5-enum-1.120nb3
- (2023-07-06) Updated to version: p5-enum-1.120nb2
- (2022-06-28) Updated to version: p5-enum-1.120nb1
- (2021-10-02) Updated to version: p5-enum-1.120
- (2021-05-25) Updated to version: p5-enum-1.110nb6
- (2020-09-01) Updated to version: p5-enum-1.110nb5
CVS history: (Expand)