|
|
| Problems? Is your data what you think it is? | |
| PerlMonks |
Re: Re: OOP Access of variablesby simeon2000 (Monk) |
| on Mar 08, 2001 at 16:27 UTC ( [id://63019]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Sorry, I must not have made it clear. I mean, each time the main script is run, I only want one instance of the database connection. This is created in TArtLib ($TArtLib::dbh). I want TArt::Editor to be able to use $TArtLib::dbh, so that TArt::Editor doesn't need to make a new DB connection. Both TArtLib and TArt::Editor will/should always be used in package main.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||