The "fat comma" => stringifies its left-hand argument. So Perl sees your code as:
my %english_translation = ( 'NULL' => "Zero", 'EINS' => "One", 'ZWEI' => "Two", );
To avoid that, you could change the fat comma to a normal comma.
In reply to Re: Module constant and constants in Hashes
by Corion
in thread Module constant and constants in Hashes
by Lya
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |