Hi there,
First, the situation:
I'm finally convinced (by
Ovid's
article) to change all my work to use 'strict' and 'perl -Tw'.
So I tried...
Next, the problem:
I've got a whole bunch of vars (like $rootpath, $rooturl, $sitename, $cgipath, etc. etc.) and some subroutines (like make_html, fatal_error, etc.) stuffed into two files, which are called by 'require "vars.pl" ' and 'require "sub.pl"'.
As you probably know, those vars aren't taken into the main-cgi-file, and there is my problem.
A thread like this has started earlier on, but all I found there terrified me: do I really have to change every line like
'print "path to cgi is $cgi_path";' into
'print "path to cgi is $whatever::$cgi_path";' ???
I'd have to do 50 hours of work if that's indeed the only possibility...
Last, the solution:
?
Might you know it, please let me know!!!