in reply to Re: running perl script from php
in thread running perl script from php

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.

Replies are listed 'Best First'.
Re: Re: Re: running perl script from php
by duff (Parson) on Dec 19, 2003 at 16:22 UTC

    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.