in reply to Re^2: Problems Processing Hash within Cgi Script
in thread Problems Processing Hash within Cgi Script

Does the cgi script have permission to read from the file? Is the path to the file correct when you run the script as a CGI?

Is the module testing the result of open() call and die()ing if it can't open the file? If so, check your error logs.

  • Comment on Re^3: Problems Processing Hash within Cgi Script

Replies are listed 'Best First'.
Re^4: Problems Processing Hash within Cgi Script
by EchoAngel (Pilgrim) on Dec 22, 2004 at 16:15 UTC
    yes it has permission to read it. When I run perl myscript.cgi , the output is a valid html page. When running myscript.cgi on the browser, till still cuts off the html after my hash code section
      Running perl myscript.cgi is not the same as running it as a CGI - your server can run cgi scripts as another user for instance, the environment variables will not be the same and depending on the server, it might not be called with the same current directory. My guess is that the call to the sub in your module is not succeeding, hence my questions.