On Thu, Apr 15, 2010 at 2:07 AM, RSAVAGE via RT
<bug-Capture-Tiny@rt.cpan.org> wrote:
Show quoted text> Would it be possible to capture the exit code for the program being run,
> and to make that available?
Because Capture::Tiny can be used for things other than just running
programs, it doesn't capture exit codes. it does, however, preserve
$?. So this should just work:
capture { system(@cmd) };
if ( $? ) {
...
}
Is that sufficient for your needs?
-- David