{ my $captured_stdout = ''; local *STDOUT; open(STDOUT, '>', \$captured_stdout) or die $!; ... }
In reply to Re: redirecting STDOUT output to variable?
by ikegami
in thread redirecting STDOUT output to variable?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |