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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

perl on as/400

Status
Not open for further replies.

aperfectcircle

Programmer
Apr 3, 2001
290
US
Has anyone successfully installed perl on the as/400? When I try to run a script I get an error that says "perl requires descriptor-based stdio."

Any ideas?
 
Have you found a solution to this 'descriptor-based stdio' problem? The same thing is happening to me. Thanks.

Steve
 
Well I've got my own answer, I don't know if you've figured this out yet but I might as well post the solution for anyone else running into this.

You have to run the Perl program from Qshell! You can start an interactive session in Qshell with the QSH command, or run the program with this type of command:

QSH CMD('/QSYS.LIB/PERLDIST.LIB/PERL.PGM /tmp/hello.pl')

Qshell will take care of setting up the descriptors and environment variables for you. So a command run by Qshell can assume that descriptors 0, 1, and 2 are available for stdin, stdout, and stderr.

Steve
 
Where can PERL for the AS/400 be found? On the perl website? On IBM's?
Mike Wills
RPG Programmer

"I am bad at math because God forgot to include math.h into my programming!"

Please let us (Tek-Tips members) know if the solutions I provide are helpful to you. Not only do my posts help you but they may help others.
 
Thanks SteveR321
Mike Wills
RPG Programmer

"I am bad at math because God forgot to include math.h into my programming!"

Please let us (Tek-Tips members) know if the solutions I provide are helpful to you. Not only do my posts help you but they may help others.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top