Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

interactive lose...

by PimpSmurf (Initiate)
on Jun 15, 2000 at 07:55 UTC ( #18239=perlquestion: print w/replies, xml ) Need Help??

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

I have a script called
require './';
it calls function() in
use CGI ':standard';
sub function {
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 to this:
require './';
It still wont work.
Anything I should know about?
btw... function and file names were changed to protect the innocent.

Replies are listed 'Best First'.
Re: interactive lose...
by Crulx (Monk) on Jun 15, 2000 at 08:08 UTC
    Hey PimpSmurf, That nick is wrong on so manny levels,I like it.
    1. What is the exact error message you are getting?
    2. Does end in a 1; so that eval's to true? It needs to if you plan on using it.
    I have tried it on my perl 5.6 and it works fine, offline mode loads and everything. I can only assume that you don't have the 1; at the end of

    Hope this helps!

Re: interactive lose...
by Anonymous Monk on Jun 15, 2000 at 22:09 UTC
    actually... I appreciate the help... but I figured it out.
    the problem was with CGI::Cookie.
    when you use CGI's :standard functions and CGI::Cookie offline mode disables if $ENV{"HTTPS"} eq 'on'. Which I dont think it should do, (and is undoced I believe.) I have to "export HTTPS=on" to make the script run from console as the script itself requires a ssl connection.
    Thanks for the help.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://18239]
Approved by root
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2022-12-01 09:09 GMT
Find Nodes?
    Voting Booth?