my %months = qw( 0 => Jan 1 => Feb 2 => Mar ); #### print "$months{$month}\n"; Output = Jan