Hello,
I am attempting to get a CGI system running with OS/400 and the IBM HTTP Server. I have successfully installed Perl on the server, and link to the perl script using a simple CL script as such:
PGM
CALL PGM(PERLDIST/PERL) PARM('/path/to/perl/script')
ENDPGM
Using this method, I can get a simple Perl script to work. However, when I attempt to use a 'require' or 'use' command at the top of the script, the whole thing fails, stating that the script can't be executed. The HTTP Server error logs tell me that the Perl module can't be found, which leads me to believe that the problem lies in the Perl interpreter trying to reference a module library using a path that can't be understood by the OS. I am able to run the script successfully from a QShell, and from the web, as long as no outside files are referenced. Can I configure this setup to allow me to use 'require' methods for outside code?
Thank you for any help
Matt
I am attempting to get a CGI system running with OS/400 and the IBM HTTP Server. I have successfully installed Perl on the server, and link to the perl script using a simple CL script as such:
PGM
CALL PGM(PERLDIST/PERL) PARM('/path/to/perl/script')
ENDPGM
Using this method, I can get a simple Perl script to work. However, when I attempt to use a 'require' or 'use' command at the top of the script, the whole thing fails, stating that the script can't be executed. The HTTP Server error logs tell me that the Perl module can't be found, which leads me to believe that the problem lies in the Perl interpreter trying to reference a module library using a path that can't be understood by the OS. I am able to run the script successfully from a QShell, and from the web, as long as no outside files are referenced. Can I configure this setup to allow me to use 'require' methods for outside code?
Thank you for any help
Matt