Help for this page
my %ssh; my @hosts = qw/ server1.example.com server2.example.com /; ... for my $host (@hosts) { $ssh{$host}->system("@cmd"); }