use IO::Scalar; tie *STDOUT, 'IO::Scalar', \my $out; function_which_prints_to_stdout(); untie *STDOUT; # the output is stored in $out
--
Tatsuhiko Miyagawa
miyagawa@cpan.org
In reply to Re: redirecting function output
by miyagawa
in thread redirecting function output
by hotshot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |