in reply to Using STDIN with IO::CaptureOutput

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;

I'm not the guy you kill, I'm the guy you buy. —Michael Clayton