#!/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;
In reply to Running a C program from Perl by n4nature
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |