Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
local (*STDOUT, *READOUT, *WRITE); pipe READOUT, WRITE or die $!; open STDOUT, '>&WRITE' or die $!; close WRITE; @result = &$code(); close STDOUT; my $stdout = <READOUT>;
|
---|