Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: RFC: Simple DBI abstraction

by iburrell (Chaplain)
on Sep 09, 2004 at 16:44 UTC ( [id://389774]=note: print w/replies, xml ) Need Help??


in reply to RFC: Simple DBI abstraction

Don't use $dbh to name the objects, or do as the method name. $dbh is the standard idiom for DBI database handles. If you call your objects $dbh even in sample code, then people will get confused and think they are real database handles. And do is a method on database handles. $dbh->do implies the standard do method.

Use another, more descriptive name. If you can find a better name, maybe that is a good sign the interface needs some work.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-16 10:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found