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