Stanisław T. Findeisen wrote:
use constant { SOME_CONSTANT => 'some value' };
$hash{SOME_CONSTANT} = 'value 1';
Not weird at all, just works as documented.
So change to either:
$hash{ +SOME_CONSTANT } = 'value 1';
or:
$hash{ SOME_CONSTANT() } = 'value 1';
--
Ruud
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/
