Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: weird reference problem

by macPerl (Beadle)
on Jan 19, 2005 at 15:52 UTC ( [id://423420]=note: print w/replies, xml ) Need Help??


in reply to weird reference problem

imcsk8,

did you find a resolution to this issue. I have come on s'thing which seems v. similar (am testing CGI::Session also):

2 possibilities:

1. create direct connection

my $dbh = ablib::connectMe($pIn{'admUn'}, $pIn{'admPw'});

2. using session->param

my $dbh = $session->param("dbh");

Then I pass in identical way to query sub

my @loopData = ablib::menuSQL($dbh, $myID);

#1 works perfectly, #2 fails on $dbh->prepare(...)

Interrogation of vars and both look ok :

#1 DBI::db=HASH(0x83caa6c)

#2 DBI::db=HASH(0x84b7514)

any ideas ?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2024-04-23 07:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found