I'm not sure if this has anything to do with the problem you're having but, according to the docs for require:
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.Note that the file will not be included twice under the same specified name.
the lowliest monk
In reply to Re: Using 'Require' to Generate Content
by tlm
in thread Using 'Require' to Generate Content
by scishop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |