Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Why was it neccessary to pass a DBI handler by reference?

by Trimbach (Curate)
on Jan 28, 2004 at 18:04 UTC ( #324720=note: print w/ replies, xml ) Need Help??


in reply to Why was it neccessary to pass a DBI handler by reference?

Is it possible that that code that you passed $dbh into wasn't accidentally de-referencing $dbh somewhere? If $dbh was being inappropriately dereferenced in the One and Two packages (for example) then that would explain why passing a reference to a reference would fix it. It may not have anything to do with DBI at all.

Gary Blackburn
Trained Killer


Comment on Re: Why was it neccessary to pass a DBI handler by reference?
Re: Re: Why was it neccessary to pass a DBI handler by reference?
by kudra (Vicar) on Jan 29, 2004 at 14:20 UTC
    I don't think that happened, because if I somehow managed to dereference it, the first method I tried to call on it would give an error. I also couldn't have fixed the problem by adding the reference and an extra dereference (which I failed to mention having done), because there would still have been the double dereference.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2015-07-03 15:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (53 votes), past polls