Does anyone know how I capture the value of an operation that defaults to
STDOUT? For instance if I want to do something like

#!/usr/bin/perl -w

use strict;
my $value = `perl -c someapp.cgi`; # prints to STDOUT
print "Content-type: text/html\n\n";
print "Result: $value<BR>";


This obviously won't work because 'perl -c' directs the output away from my
variable and into STDOUT. I'm thinking I might be able to capture that
return value using IO::Handle or something of that nature but I'm not sure
how. Can anyone help?

Scot R.
inSite
[EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to