Do you know where your variables are? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
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. In reply to interactive lose... by PimpSmurf
|
|