http://qs321.pair.com?node_id=1105361


in reply to capturing stderr of echo piped to a file

use system with use Capture::Tiny
use Capture::Tiny qw/ capture /; my($stdout, $stderr, $exit) = capture { system { $args[0] } @args; };;