Perl: require "/var/www/whateverIwish/myfile.pl"
I might be dating my perl days. 10+ years ago, I could put into any program I desired absolute path and filename to any perl snippet I might wish to use and presto any sub in the place is mine to play with... still that way yes? Have @INC not included errors, and all the web talks about are modules.
O.k. might be misstating the effort.
My script does everything it's supposed to from the command line. (it's inside my cgi-bin script area), but when the web browser connects it fails
Can't locate /var/www/library/formgen.pl in @INC
(all my files are mod 755).
at
require "/var/www/library/formgen.pl";
which I wrote a very long time back to assist me in html generation. Refresh my rusty skills, if I've an absolute path, does it matter what path settings are elsewhere? from user or root csh or bsh it does what I think it should.
p.s. formgen.pl does not refer to any other file.