in reply to Re: How can I declare constants?
in thread How can I declare constants?

Thank you. I used this pragma already but had the problems mentioned in the bugs section (brewordsm, sub calls). Does there exist any other alternative (no my or our declaration)?

Replies are listed 'Best First'.
Re^3: How can I declare constants?
by reasonablekeith (Deacon) on Oct 05, 2005 at 11:28 UTC
    You can decalare a sub routine...
    use strict; use warnings; sub PI () {3.14} print PI;
    still not sure what you've got against 'my' though
    ---
    my name's not Keith, and I'm not reasonable.
Re^3: How can I declare constants?
by Corion (Patriarch) on Oct 05, 2005 at 11:29 UTC

    No. The only bareword-"problem" in the documentation also has a solution mentioned with it. Did you try that solution? What part of that solution did not work for you? Can you show some code that demonstrates how you followed the documentation but still got the wrong behaviour?