in reply to looping an array through perldap

my @hosts = ('ldap0:80','ldap:3','ldap2:23'); foreach my $host (@hosts) { my $ldap_conn = new Mozilla::LDAP::Conn(split':',$host) }
Look into split for more detail

The 15 year old, freshman programmer,
Stephen Rawls