I'd just add in here for clarification of the SoPW poster that $dbh is a reference to your database object (the arrow operator for the DBI functions should be a big tip-off :D); using the "
" anywhere else gains you a local copy fo the reference, but the reference still points to the single copy of the object that holds the DB connection.