protos has asked for the wisdom of the Perl Monks concerning the following question:
and proceed from here. I'm faced with one of the ldap servers listening on a different port. So my code needs to look something like this:my @hosts = ('ldap0','ldap','ldap2'); foreach my $host (@hosts) { my $ldap_conn = new Mozilla::LDAP::Conn($host);
Unfortunately the perldap method new Mozilla::LDAP:Conn does not recognize a value like 'host:port'. The colon confuses it. How can I split() the host/port values in @hosts, and feed them into perldap thusly:my @hosts = ('ldap0:390','ldap:389','ldap:389');
Thank you.my $ldap_conn = new Mozilla::LDAP::Conn($host,$port);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: looping an array through perldap
by srawls (Friar) on Jun 06, 2001 at 00:40 UTC | |
|
Re: looping an array through perldap
by lestrrat (Deacon) on Jun 06, 2001 at 00:41 UTC | |
|
Re: looping an array through perldap
by protos (Initiate) on Jun 06, 2001 at 01:19 UTC | |
|
Re: looping an array through perldap
by the_slycer (Chaplain) on Jun 06, 2001 at 00:42 UTC |