http://qs321.pair.com?node_id=18239

PimpSmurf has asked for the wisdom of the Perl Monks concerning the following question:

I have a script called 1.pl
--begin--
require './2.pl';
function();
--end--
it calls function() in 2.pl
--begin--
use CGI ':standard';
sub function {
param();
...
}
--end--
When this is run on perl5.0005 it will allow offline mode. However, on perl5.6.0 it will not. I am not quite sure why this is. offline mode will not work unless the "use CGI ':standard'; param();" is in the file executed, and "use CGI..." is not in the require'd file. I even tried changing 1.pl to this:
--cut--
require './2.pl';
param();
function();
--cut--
It still wont work.
Anything I should know about?
btw... function and file names were changed to protect the innocent.