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; };;

Replies are listed 'Best First'.
Re^2: capturing stderr of echo piped to a file
by cebundy (Novice) on Oct 28, 2014 at 20:36 UTC
    Thanks. I was hoping for something a little simpler in the sense of not having to install and load another module, but this works, which is the important thing.