in reply to Reading from terminal
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': $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reading from terminal
by uvnew (Acolyte) on Nov 15, 2008 at 18:30 UTC |