Thanks for the array advice - I've fixed that. The problem remains, though. I can't get any of my perl output into the php. I thought that a print in perl would write data to the $Result array in the php exec call. Is this not true?
(This is just a test app - ultimately I want to extract some data form a csv file in the perl script.)
Richard.
Technically no, that's not correct. Perl writes to STDOUT. The exec() routine in PHP reads each line of the output and puts them in the $Result. There is no direct communication between PHP and Perl.