R
Regent
I have a Perl-based web site, of which each script must "require" a
commonstuff.pl that simply defines some common subroutines and
constants. If I don't put commonstuff.pl in any of the @INC paths, how
should I efficiently include it in each script, avoiding such lines as
require "d:/wwwroot/cgi-bin/commonstuff.pl";
Of course I also tried the following:
unshift (@INC, "d:/wwwroot/cgi-bin");
require ("commonstuff.pl");
However I hate to do such path-specific things in the many scripts. Thanks!
Regent
commonstuff.pl that simply defines some common subroutines and
constants. If I don't put commonstuff.pl in any of the @INC paths, how
should I efficiently include it in each script, avoiding such lines as
require "d:/wwwroot/cgi-bin/commonstuff.pl";
Of course I also tried the following:
unshift (@INC, "d:/wwwroot/cgi-bin");
require ("commonstuff.pl");
However I hate to do such path-specific things in the many scripts. Thanks!
Regent