there is another option you left out, which makes use of the unary "+" operator.
perl -MO=Deparse -e "use constant FOO => 5; print +FOO,qq{\n};"
which parses correctly. this syntax is idiomatic, and is the method i would prefer.
~Particle *accelerates*
In reply to Re^4: Problem with constant pragma and some hash definitions
by particle
in thread Problem with constant pragma and some hash definitions
by dbush
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |