my @hosts = ('ldap0','ldap','ldap2'); foreach my $host (@hosts) { my $ldap_conn = new Mozilla::LDAP::Conn($host);