Do you know where your variables are? | |
PerlMonks |
Re: Accessing Constant Hashesby perrin (Chancellor) |
on Jan 16, 2002 at 02:36 UTC ( [id://139066]=note: print w/replies, xml ) | Need Help?? |
ar0n gave the right answer, but I just want to take a moment to say that constant in the current implementation is totally lame for exactly this reason, and I think you should avoid it completely. It doesn't work in quoted strings or HERE docs either without similar tricks. Just use globals or lexicals at the top of the file for your constants.
In Section
Seekers of Perl Wisdom
|
|