http://www.perlmonks.org?node_id=904399


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.