Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: lazy creation of a hash

by scorpio17 (Abbot)
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.

Replies are listed 'Best First'.
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?
Happy-the-monk hands LanX a treat of ambidextrosis.
[Discipulus]: my son was used to say being left-handed on both hands..
[erix]: ambysinistral ;)

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2018-02-19 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (264 votes). Check out past polls.

    Notices?