Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Simple DBI handle caching.

by kyle (Abbot)
on May 11, 2011 at 14:23 UTC ( #904168=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub dbh {
        my ($u,$p) = ('user',':)');
    ...
    
        return $dbh;
    }
    
  2. or download this
    sub dbh {
        state $dbh;
    ...
        }
        return $dbh;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2015-08-03 06:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (26 votes), past polls