Isn't that supposed to print "test1" in the second print ?
No. If you create a hash key using a bareword, it will be treated as if it was a quoted string. Use $hash{ &KEY } = $value to get your constants work.
-- Frank
In reply to Re: Question related to the use of constants
by haoess
in thread Question related to the use of constants
by danielcid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |