n4nature has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use Test::More; use Test::Deep; my $o_file = "output.txt"; my $bin = 'hello.exe'; # run the C program $result = `$bin > output.txt`; print $result;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Running a C program from Perl
by ikegami (Patriarch) on May 25, 2009 at 19:04 UTC | |
|
Re: Running a C program from Perl
by jettero (Monsignor) on May 25, 2009 at 21:43 UTC | |
|
Re: Running a C program from Perl
by graff (Chancellor) on May 25, 2009 at 23:19 UTC | |
by n4nature (Novice) on May 26, 2009 at 05:36 UTC | |
by Utilitarian (Vicar) on May 26, 2009 at 07:20 UTC | |
by Bloodnok (Vicar) on May 26, 2009 at 16:06 UTC | |
by graff (Chancellor) on May 27, 2009 at 02:16 UTC | |
by Bloodnok (Vicar) on May 27, 2009 at 09:31 UTC | |
by ikegami (Patriarch) on May 27, 2009 at 13:45 UTC |