[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#728341: ITP: libenum-perl -- perl module for sets of ordered constants like enums in C



Package: wnpp
Owner: gregor herrmann <gregoa@debian.org>
Severity: wishlist
X-Debbugs-CC: debian-devel@lists.debian.org,debian-perl@lists.debian.org

* Package name    : libenum-perl
  Version         : 1.05
  Upstream Author : Neil Bowers <neil@bowers.com>
* URL             : https://metacpan.org/release/enum
* License         : Artistic or GPL-1+
  Programming Lang: Perl
  Description     : perl module for sets of ordered constants like enums in C

The enum module defines a set of symbolic constants with ordered numeric
values ala C enum types.

It is now capable of creating ordered bitmask constants as well. See the
BITMASKS section in the documentation 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().


Reply to: