A couple of questions:
- What webserver are you using?
- Are you using mod_perl?
- What OS is this?
- What does the code look like?
- What do the webserver logs say?
- What happens when you run this from the command line?
- Is there anything additional (proxying, caching, etc.) going on that might affect the display of content?
| [reply] |
I'm not sure if this has anything to do with the problem you're having but, according to the docs for require:
Note that the file will not be included twice under the same specified name.
Maybe do would be better than require for this? Or better yet, make proper exporting modules out of these files, and define functions print_content (for example) in these modules to perform the desired printing; then your code explicitly calls the appropriate one among these functions after executing the require statement.
| [reply] [d/l] |
Both CGI::Application and CGI::Prototype offer a structured approach to the problem you are presenting. Why don't you take a look at these 2 solutions to your problem?
| [reply] |
It's hard to make a relevant suggestion without seeing any example of the code... However when a CGI doesn't display anything, it's often a header problem. Perhaps one of your modules sometimes send some HTML before your script has any chance to send the http headers first? | [reply] |
| [reply] |
Make sure there is a return 1; at the end of each of the files you are requiring. The file must be returned as true when the script goes to require it, or it will fail. | [reply] [d/l] |
Do you say "Require" with those nice quotation marks because you mean you have to open some text files and evaluate their comments? If that is the case you might have some open statements that just dont get executed for whichever reason.
But without any code if even examples only it will be a wild guessing game to help you.
| [reply] |