Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Tie::Memoize and Memoize.pm (Was "Re: Does there exist a CPAN module for lazily initialized variables?")

by ihb (Deacon)
on Jul 15, 2004 at 16:28 UTC ( [id://374710]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        use Memoize;
        BEGIN {
    ...
    
        dbh()->foo; # connect and do foo.
        dbh()->bar; # use cached object and do bar.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-24 09:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found