in reply to explanation of constant syntax?
A simple workaround is to add an extra set of parens:
There are other ways around, but I think this is the cleanest.my %hash = ( (FOO) => 35, (BAR) => 19, ); print $hash{(FOO)};
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: explanation of constant syntax?
by meonkeys (Chaplain) on Mar 20, 2004 at 17:57 UTC | |
by merlyn (Sage) on Mar 20, 2004 at 18:22 UTC |