Thank you for those ideas.
The system return value is 0.
I have gotten both system calls to run now, but the perl system call needs some time to execute and php is not waiting for the process to finish. So I can see that a file has been made and some information is being sent to it, but the "process" is cut short.
(I just to say again that the perl script runs ok from the commadline.)
I have increased the memory_limit and execution time values in php.ini, but that hasn't helped.
Is there another parameter I can change?
Thank you,
George