Most likely, qx or backticks will do, or IPC::Run, if you want to bring out the heavy guns. Also, you could try simply redirecting the output of the C++ program like this:
my $outfile = 'outfile.txt'; system("cplusplusprogram >$outfile") == 0 or die "Couldn't launch cplusplusprogram: $!/$?"; open my $fh, "<", $outfile or die "Couldn't read '$outfile': $!";
In reply to Re: Reading from terminal
by Corion
in thread Reading from terminal
by uvnew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |