my $command="/usr/local/coms/command "; my @array = `$command`;
Backticks are what you're looking for.
In reply to Re: Redirecting OUTPUT of system($command) to an array
by Nkuvu
in thread Redirecting OUTPUT of system($command) to an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |