in reply to Enum

Hashes could do the trick:
my %enum = (Russ => 1, Anonymous Monk => 2, vroom => 3); $enum{Russ}; # value is 1 $enum{Anonymous Monk}; # value is 2 $enum{vroom}; # value is 3
Update I suppose I should reverse my hash to make it work like enums are often used:
my %enum = (1 => 'Russ', 2 => 'Anonymous Monk'); # Imagining a switch statement (but not wanting to show # a perl-ified way to do that...) if ($enum{$AnotherVar} eq 'Russ'){ doSomething(); }
I've forgotten most of my C mentality (as fast as I could) ;-)

Russ