Hi,

I'm really struggling with my scripts for the moment.
What I have is a config file, for the moment a config.pl
which i'm trying to change to config.ini using Config::IniFiles module.
But here is the header of my programs

#!/usr/bin/perl
use CGI qw(:standard);
use DBI;
require "/home/sites/prog/www/config.pl";
use lib '/home/sites/prog/www/Module';
use AccForm;
use ErrTemp;
use SB_Function;

Now the modules AccForm, ErrTemp and SB_Function uses config.pl but the
problem is that the variables in config.pl doesn't go into accForm, ErrTemp
and SB_function.
So what i have done is declare config,pl in each module, but then it seems
to cancel out, what i mean is that AccForm will use config.pl but not
ErrTemp and Sb_function,
if I do
use ErrTemp;
use SB_Function;
use AccForm;
then only ErrTemp, will use the varibles. as well as the general script.

So is there a way in which I can declare one time config.pl and it can go to
all the module???

Thank You
Anthony




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to