![]() |
|
P is for Practical | |
PerlMonks |
Re^2: DBI problem on AIX/Oracle 10gby hibbarra (Novice) |
on Jul 24, 2007 at 18:01 UTC ( [id://628541]=note: print w/replies, xml ) | Need Help?? |
$sth is a persistent variable. That way I can use it in the unless statement. The connect to the database uses its own persistent variable if its already defined it just returns it if its not it performs a connect. I am not disconecting and reconnecting, I only connect once. By doing it this way I don't have to pass connection handles all over the place.
Hibbarra
In Section
Seekers of Perl Wisdom
|
|