in reply to Howto pass the STDOUT of an executable into an array
I think you have an error in your specification. The last bit of code you give specifies a single array reference as the first value of an array. You probably want one line per array value?
Anyway, you can use backticks for this
or, if you want the output in an array referencemy @captured = `./myexecutable.out -O option1 -W option2 -T option3`;
my $captured = [(`./myexecutable.out -O option1 -W option2 -T option3` +)];
|
|---|