http://www.perlmonks.org?node_id=608548

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

hi all,

I have a small question. I have a working perl code where I am looping for an hash element(containing hostnames) and doing number of ssh's to each of the hostnames to gather various date. The problem is we have about 20 boxes and it takes about 30 min to complete all the boxes.

for my $key ( keys %hosts ) { ssh1 (gather data); ssh2 (gather data); ssh3 (gather data); }
Now is there some way I can run the ssh on all the hosts of the %hosts parallely

much appreciated