gminter at hevanet.com
Wed Aug 15 16:28:25 CDT 2001
Kari Chisholm wrote:
> Howdy all--
> This may be a moron question, but I can't seem to get it to work.
> I've got two CGI's
> that really live on my server here
> I want each of them to read in subroutines and settings from a single place
The approach I use is to place everything in subroutines in a perl
module file. This is like a ".cgi" or ".pl" file, but has a ".pm"
extension and ends with a "1;" on the last line.
Then use the "use lib" directive to identify the directory.
use lib '/www/karic/mystuff';
I don't think that variable settings can be seen across files. They
be read from subroutines.
I hope this helps.
More information about the Pdx-pm-list