is equivalent to ...my @pids = map $ssh->spawn(@$_), @cmds;
It uses the Net::OpenSSH object passed to the sub to start all the commands in parallel.my @pids; for my $cmd (@cmds) { push @pids, $ssh->spawn(@$cmd); }
In reply to Re^3: Running PERL SCRIPTS in Parallel
by salva
in thread Running PERL SCRIPTS in Parallel
by rahulruns
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |