Subject: CVS commit: pkgsrc/devel/p5-enum
To: None <pkgsrc-changes@NetBSD.org>
From: Roland Illig <rillig@netbsd.org>
List: pkgsrc-changes
Date: 01/25/2007 03:08:19
Module Name:	pkgsrc
Committed By:	rillig
Date:		Thu Jan 25 03:08:19 UTC 2007

Update of /cvsroot/pkgsrc/devel/p5-enum
In directory ivanova.netbsd.org:/tmp/cvs-serv8861

Log Message:
Imported p5-enum.

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);


Vendor Tag:	TNF
Release Tags:	pkgsrc-base
		
N pkgsrc/devel/p5-enum/Makefile
N pkgsrc/devel/p5-enum/PLIST
N pkgsrc/devel/p5-enum/distinfo
N pkgsrc/devel/p5-enum/DESCR

No conflicts created by this import