in reply to Module constant and constants in Hashes
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Module constant and constants in Hashes
by Fletch (Bishop) on Jan 14, 2009 at 14:51 UTC | |
|
Re^2: Module constant and constants in Hashes
by Lya (Initiate) on Jan 14, 2009 at 14:57 UTC | |
by jdporter (Paladin) on Jan 14, 2009 at 15:37 UTC | |
by shmem (Chancellor) on Jan 14, 2009 at 21:34 UTC | |
by tinita (Parson) on Jan 15, 2009 at 15:14 UTC |