Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^5: Accessing main::Constant

by desemondo (Hermit)
on Dec 17, 2009 at 08:49 UTC ( #813156=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Accessing main::Constant
in thread Accessing main::Constant

What is the benefit in declaring a constant that contains a reference to a data structure? It doesn't make the child elements readonly...

Also, I avoid use constant wherever possible and use Readonly instead. In my opinion its far more flexible...


Comment on Re^5: Accessing main::Constant
Select or Download Code
Re^6: Accessing main::Constant
by BrowserUk (Pope) on Dec 17, 2009 at 19:44 UTC
    Also, I avoid use constant wherever possible and use Readonly instead.

    Then you are a victim of marketing and hyperbole.


    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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://813156]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (13)
As of 2014-10-01 15:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (29 votes), past polls