Previously I wrestled with IO::Capture* and friends, with unsatisfactory results. The module is substandard, the author unresponsive.
I have switched to Test::Trap, with excellent results. It need not be used solely in a testing framework. You may be interested in Cheat::Sheet::Test for concise usage. Note accessor methods such as $got = $trap->stdout;
In reply to Re: Using STDIN with IO::CaptureOutput
by Xiong
in thread Using STDIN with IO::CaptureOutput
by datamgmt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |