Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: lazy creation of a hash

by scorpio17 (Monsignor)
on May 12, 2011 at 13:26 UTC ( #904399=note: print w/ replies, xml ) Need Help??


in reply to lazy creation of a hash

Instead of a global hash, consider creating a singleton object having get() and set() methods.


Comment on Re: lazy creation of a hash
Re^2: lazy creation of a hash
by John M. Dlugosz (Monsignor) on May 12, 2011 at 13:51 UTC
    And exists, and keys, and when I'm all done it might as well be a tied hash since that is the API I want to provide.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2015-07-03 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls