in reply to system stdout redirected ok to a file but not to a variable.
#!/usr/bin/perl -- use strict; use warnings; use Capture::Tiny qw/ capture /; my @cmd = ( ); my($stdout, $stderr, $exit) = capture { system { $cmd[0] } @cmd; };; [download]