Net::LDAP->new, lists and arrays

2008-07-08 Thread Manuel Vacelet
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.c

Re: Net::LDAP->new, lists and arrays

2008-07-08 Thread Christopher A Bongaarts
In the immortal words of Manuel Vacelet: > 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

Re: Net::LDAP->new, lists and arrays

2008-07-08 Thread Chris Ridd
Manuel Vacelet wrote: 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://ld