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.
| [reply] |
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
| [reply] |
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.
| [reply] [d/l] |