#!/usr/bin/perl -- use strict; use warnings; use Capture::Tiny qw/ capture /; ... my @cmd = ( '/usr/bin/echo', 'whiskey', 'foxtrot' ); my( $stdout, $stderr, $exit ) = capture { system { $cmd[0] } @cmd; };; ...
In reply to Re: system bash return value
by Anonymous Monk
in thread system bash return value
by stanley82
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |