in reply to Re: OOP Access of variables
in thread OOP Access of variables
If I also have a TArt::Article package data object, and I call the script like this:
If both of these packages (TArt::Editor, TArt::Article) use TArtLib, would they both get the same $dbh object when calling TArtLib->dbh, or would it be two separate TArtLib packages (and thus, two database handle objects)?package main; use TArt::Editor; use TArt::Article; my $ed = new TArt::Editor; my $art = new TArt::Article;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: OOP Access of variables
by TheoPetersen (Priest) on Mar 08, 2001 at 21:38 UTC | |
by simeon2000 (Monk) on Mar 08, 2001 at 22:02 UTC | |
by Masem (Monsignor) on Mar 08, 2001 at 22:46 UTC |