Just changing to \$dbh will not work without other changes. So the big question is are you sure you just changed the new call and the new method (to properly de-reference
the reference to $dbh)? Were there possibly any other changes?
Re: Why was it neccessary to pass a DBI handler by reference?
Replies are listed 'Best First'.
One::new expects \$dbh instead of $dbh, and dereferences
That's it. I didn't expect it to work, and only tried it
because the symptom seemed to be that of a variable passed
by value, not by reference. The fact that it did work has
left me bewildered, and is the reason I started this thread.