Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AS/400 PERL module problems

Status
Not open for further replies.

mhoover

Programmer
Oct 8, 2001
1
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top