I am using a script to manage flatfile databases which consists of several
perl files: a central perl script contains all subroutines for data
manipulation, another script prints out html code, and a configuration file
sets all global variables like for instance $db_script_path for the
directory in which the script resides. So far I haven't really bothered
with variable declarations, but I thought at some point I should give it
some thought :-)
What I don't understand is how to use certain variables in different script
files without use strict complaining.
For instance, $db_script_path is assigned a certain value in default.cfg,
and default.cfg requires html.pl.
If I don't declare $db_script_path in html.pl, use strict complains. If I
declare it using "my $db_script_path", it doesn't contain the value
assigned to it in default.cfg.
So my question is:
If I have one script that requires another and I want to make the former's
global variables available in the latter, and have use strict NOT complain,
what should I do? Perhaps I should not use "require", but "use"?
Birgit Kellner
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]