in reply to Re: Typeglobs and constant variables
in thread Typeglobs and constant variables

G'day AnomalousMonk,

My preference would be for Const::Fast. My reasons for this are in "Re: Use of Constants". I am not, however, on a crusade to promote one over the other. :-)

-- Ken

Replies are listed 'Best First'.
Re^3: Typeglobs and constant variables
by BrowserUk (Patriarch) on May 31, 2013 at 09:12 UTC
    My preference would be for Const::Fast. My reasons for this are in "Re: Use of Constants"

    One caveat -- beside the build problem -- of that module that it fails to mention, is that its "constants" aren't (compile-time) constants, but rather runtime variables that cannot be varied [sic], and thus they do not trigger Perl's compile-time optimisations.

    For me, that issue alone negate the purpose of using constants almost completely. Combined with the other two issues render it a non starter.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
Re^3: Typeglobs and constant variables
by Anonymous Monk on May 31, 2013 at 09:37 UTC