my %configs; for my $host ( @hosts ) { %configs{ $host } = qx[ rsh $host -l user -n srvinfo]; }