in reply to How to run C object code in PERL

If you want to handle this in Perl the best solution is to not use a temp file at all:
#! /usr/bin/perl use strict; use warnings; my $cmd = "./a.out input.txt"; open(my $pipe, "-|", $cmd) or die "Can't run '$cmd': $!"; my @sequence = <$pipe>; # Proceed to process output.

Replies are listed 'Best First'.
Re^2: How to run C object code in PERL
by masala_curry (Novice) on Apr 04, 2009 at 04:53 UTC
    Works like a Charm!