in reply to Re^2: How to pass data as STDIN to Capture::Tiny
in thread How to pass data as STDIN to Capture::Tiny

FYI, Capture::Tiny::Extended resolves the collection of the return code.
From the doc:

Capture::Tiny::Extended automatically captures return values and returns them after the second return value (or first if you're using the merged functions).

use Capture::Tiny::Extended 'capture'; my ( $out, $err, $res ) = capture { system( 'ls' ) };

        ...it is unhealthy to remain near things that are in the process of blowing up.     man page for WARP, by Larry Wall

Replies are listed 'Best First'.
Re^4: How to pass data as STDIN to Capture::Tiny
by Anonymous Monk on Jan 03, 2017 at 00:45 UTC
    Capture::Tiny can already do this; this feature was added in 2011 in a patch from Christian Walde, the author of Capture::Tiny::Extended (also released in 2011).