Remember these 3 words... search.cpan.org ;) http://search.cpan.org/search?query=enum&mode=all
CPAN is always the best place to start looking for code. On the results page is looks like "enum" will do what you need. Rob -----Original Message----- From: Harter, Douglas [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2003 3:36 PM To: Beginners Mailing List Perl (E-mail) Subject: Simulating VB Enum Visual Basic has a construct called Enum which looks like so: Enum namea dhbold dhcaption dhend dhform ..... end enum What it essentially does is assign an incrementing numeric value to each variable in the enum, so that dhbold = 1 dhcaption = 2 dhend = 3 dh form = 4 etc. Is there a way to do the same thing easily in Perl? . -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]