Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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.