use IO::Scalar; $std_out = tie *STDOUT, 'IO::Scalar'; print "hello world"; # goes into $std_out scalar;
In reply to Re: How do I redirect STDOUT to a string?
by jZed
in thread How do I redirect STDOUT to a string?
by pm5
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |