in reply to Re: Re: Re: Problem with constant pragma and some hash definitions
in thread Problem with constant pragma and some hash definitions
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*
|
|---|