Hello, My question is probably more related to my own understanding of perl than Net::LDAP module but it causes some headaches to me :)
The following code just works fine: 1 use strict; 2 use warnings; 3 use Net::LDAP; 4 my @servers = ['ldap://ldap5.example.com','ldap://ldap-fallback-eu.example.com','ldap://ldap.example.com','ldap://ldap2.example.com']; 5 my $ldap = Net::LDAP->new(@servers) or die "Unable to connect to ldap server: [EMAIL PROTECTED]"; But, if I change [] by () in the servers array affectation L4, I get an error: Unable to connect to ldap server: IO::Socket::INET: Bad hostname '' I googled at bit but faild to find an explanation for the difference between the list and the array definition. (The funniest part comes when it works when the list contains an odd number of elements). My very problem is that the list of available ldap server comes from a configuration variable (a scalar) I split for Net::LDAP->new. Thanks for your help, -- Manuel