in reply to redirecting STDOUT (of a system call) to a var
apparently the local was messing it up.open SAVE_OUT, '>&STDOUT'; pipe READOUT, WRITE; open STDOUT, '>&WRITE'; close WRITE; @result = &$code(); close STDOUT; my @stdout = <READOUT>; open STDOUT, '>&SAVE_OUT';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: self answer (was: Re: redirecting STDOUT (of a system call) to a var)
by tye (Sage) on Jun 29, 2001 at 22:11 UTC |