On 5/18/07, divya <[EMAIL PROTECTED]> wrote:
Hi,
I want to store the output of following command:
"vcover merge outfile in1 in2"
I tried :
1) @result = `vcover merge outfile in1 in2`;
2) system("vcover merge outfile in1 in2 > @result");
I can see some error displays on the screen. But these are not getting
stored in @result.
backticks (``) will direct the STDOUT of the command to the array.
However, your STDERR will not be directed normally. If you want those
errors directed into your array, try something like
@result = `vcover merge outfile in1 in2 2>&1`;
Kindly please suggest some way to store it.
NOTE : script runs on linux m/c
Thanks,
Divya
--
--
I'm nerdy in the extreme and whiter than sour cream
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/