Path to this page:
./
devel/p5-enum,
Enumerations for Perl
Branch: pkgsrc-2010Q2,
Version: 1.016nb1,
Package name: p5-enum-1.016nb1,
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);
Master sites: (Expand)
SHA1: d1600b60561efdb6f7f01f690e4ad179958598e5
RMD160: 40e93461960fe2c94a35d4bbb59e567bc7835509
Filesize: 5.71 KB
Version history: (Expand)
- (2010-07-05) Package has been reborn
- (2010-07-04) Package added to pkgsrc.se, version p5-enum-1.016nb1 (created)