in reply to Execution error

Apparently it's the AS/400 shell that throws the error? Can you try calling the perl executable directly, like in
perl /my/program.pl

( I don't know anything about AS/400 shell unfortunately).