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