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?
This could be easily replicated with basic Perl data structures (array and/or hash), if you don't want to grab a CPAN module. Can you tell us what you're trying to do with this structure?
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]