Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Question related to the use of constantsby haoess (Curate) |
on Aug 20, 2004 at 17:44 UTC ( [id://384658]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|