in reply to using main package variables within a module
Is there any reason you can't put the conf vars in their own module and then start the other modules with:
use Conf;
Look into using AUTOLOAD in the Conf module, and then:
I'll leave you to work out the AUTOLOAD and 'new' methods for your instance :)# change my $one = $conf->{'db_database'}; # to my $conf = new Conf; my $one = $conf->db_database;
.02
cLive ;-)
--
seek(JOB,$$LA,0);
|
---|