in reply to Ugly syntax
works, though to use the same constants as keys, you need to say $nums{&FIRST} or $nums{+FIRST}use constant FIRST => 1; use constant SECOND => 2; use constant FIFTH => 5; %nums = ( &FIRST => 'Ein', &SECOND => 'Zwei', &FIFTH => 'Funf' );
|
|---|