in reply to Re: What is the difference between the constant construct in Perl and the Readonly construct in Perl?
in thread What is the difference between the constant construct in Perl and the Readonly construct in Perl?

For standard floats that's use constant PI => 3.1415926535897931;

I can't help but comment, even if it's OT, obscure, and makes absolutely no practical difference. It's still, ever so slightly, wrong It should be

PI => 3.1415926535897932;

There, I feel better.

By the way, I thought your closing, "Another ill-thought through solution to a non-problem foisted on the world under the title of a best practice." was a nice expression of opinion, both precise and articulate (though not at all one with which I agree.) However, if one doesn't read it carefully, it can remind those in the US of a typical american rant, and there's now doubt those who took it that way. (Over here, we're little familliar with the articulate verbal sparring of Gladsone and Disraeli, or their decendants.) I'm just offering clarification; I'm not suggesting you do anything differently.

  • Comment on Re^2: What is the difference between the constant construct in Perl and the Readonly construct in Perl?

Replies are listed 'Best First'.
Re^3: What is the difference between the constant construct in Perl and the Readonly construct in Perl?
by BrowserUk (Patriarch) on Jul 06, 2006 at 19:12 UTC
    PI => 3.1415926535897932;

    Ah but...

    printf "%19.17f\n", 3.1415926535897932;; 3.14159265358979310

    Blame IEEE 754, not me :)

    ... articulate verbal sparring of Gladsone and Disraeli ...

    I wish. Baldrick maybe ;)


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.