Jeff 'japhy' Pinyan wrote:
On Sep 13, Tony Frasketi said:
my($filename) = "/home/blahblah/cgi-bin/ifgen/ifgen.cgi
my($command) = "/usr/bin/perl -c $filename";
print "command[$command]<br>";
my(@results) = `$command`;
'perl -c' sends its output to STDERR, not STDOUT. To catch that, I
would suggest using the IPC::Open3 module, which comes with Perl.
Thanks for quick response, Jeff. I'll investigate IPC::Open3 module.
In the meantime, I've found the following also works to redirect STDERR
to STDOUT..........
my($command) = "/usr/bin/perl -c $filename 2>&1";
Thanks again!
Tony Frasketi
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>