use IO::Scalar; tie *STDOUT, 'IO::Scalar', \$buffer; # all stdout will now go to $buffer, ie print "hello world"; untie *STDOUT; print "buffer is $buffer\n\n"
In reply to Re: print()ing somewhere else?
by JupiterCrash
in thread print()ing somewhere else?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |