in reply to pass reference, to a hash with a reference to an open db handle, to a sub - help
By taking a reference to $DB in ref_to_db you're introducing an unneeded extra layer of indirection. A DBI handle is already a reference; just return $DB and everything will work. For completeness sake, ${ $Booga }->disconnect (or more succinctly ${ $_[0] }->disconnect) would dereference the extra layer of indirection then call the disconnect method on the resulting handle.
|
|---|