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

2008-07-09 Thread Manuel Vacelet
On Tue, Jul 8, 2008 at 6:45 PM, Christopher A Bongaarts <[EMAIL PROTECTED]> wrote: > ... > The backslash in front of @servers makes a reference to the list. Hello Chris*, Thank you for you answers, it's now clear to me. My Perl is now a bit more fluent thanks to both of you. Cheers, Manuel

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

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

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