bogum has asked for the wisdom of the Perl Monks concerning the following question:
In test2.pm I have following:#BEGIN OF THE TEST.PM package test; use strict; use warnings; # # The object responsible for managing the database connections. # my $dbaccess = undef; #somewhere else $dbaccess = new tmp::tmp2::DBAccess( %dbURL); #END OF THE TEST.PM
My question is how to access $dbaccess variable (object) defined and initialized in test.pm within test2.pm module? I can not change anything in test.pm. Thanks, Bogumil#BEGIN OF THE TEST2.PM package test2; use strict; use warnings; # How to access dbaccess from test.pm?? #END OF THE TEST2.PM
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: access to the variable in other pm
by chromatic (Archbishop) on Feb 02, 2006 at 22:40 UTC | |
|
Re: access to the variable in other pm
by leocharre (Priest) on Feb 02, 2006 at 22:06 UTC | |
by blazar (Canon) on Feb 03, 2006 at 11:50 UTC |