You can read the output of the command from a filehandle with piped open,
my $pid = open my $sys, '-|', '/usr/local/coms/command' or die $!; my @array = <$sys>; close $sys;
After Compline,
Zaxo
In reply to Re: Redirecting OUTPUT of system($command) to an array
by Zaxo
in thread Redirecting OUTPUT of system($command) to an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |