Use Open3, that catch all the output:
use IPC::Open3 ;
open3(LOGREAD , LOGERROR, LOGWRITE, "php -q /var/www/html/testing/he
+ader.php");
@data = <LOGREAD> ;
@error <LOGERROR> ;
close(LOGREAD , LOGERROR, LOGWRITE) ;
print join("", @data) ;
Open3 is good, since is the more portable option to do that, and you have the write handler too to send data!
Graciliano M. P.
"The creativity is the expression of the liberty". |