more useful options | |
PerlMonks |
Re: Perl "Constants"by perrin (Chancellor) |
on Jul 07, 2009 at 03:55 UTC ( [id://777731]=note: print w/replies, xml ) | Need Help?? |
Forget the constant pragma. The minor speed difference over a variable isn't worth the bugs it causes when you accidentally use it in a context where it doesn't interpolate. Just use $SOME_CONSTANT instead.
In Section
Seekers of Perl Wisdom
|
|