Re: capturing output from c program inside of perl

2008-11-29 Thread Richard
Chas. Owens wrote: On Sun, Nov 30, 2008 at 00:52, Richard <[EMAIL PROTECTED]> wrote: i have a c program that I want to just run from perl and capture output I would have thought my $c_output = `/tmp/c_program`; would get me the output of the program. instead it prints out to the screen.

Re: capturing output from c program inside of perl

2008-11-29 Thread Chas. Owens
On Sun, Nov 30, 2008 at 00:52, Richard <[EMAIL PROTECTED]> wrote: > i have a c program that I want to just run from perl and capture output > > I would have thought > > my $c_output = `/tmp/c_program`; > > would get me the output of the program. > > instead it prints out to the screen. > > Is there

capturing output from c program inside of perl

2008-11-29 Thread Richard
i have a c program that I want to just run from perl and capture output I would have thought my $c_output = `/tmp/c_program`; would get me the output of the program. instead it prints out to the screen. Is there way to redirect STOUT just for that line and put it back to normal? -- To unsubs