#!/usr/bin/perl -- use strict; use warnings; use Capture::Tiny qw/ capture /; my @cmd = ( ); my($stdout, $stderr, $exit) = capture { system { $cmd[0] } @cmd; };;
In reply to Re: system stdout redirected ok to a file but not to a variable.
by Anonymous Monk
in thread system stdout redirected ok to a file but not to a variable.
by guybrush
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |