Issues passing around the associative array containing the Net::LDAP object.

2006-09-19 Thread Zane C. Bowers
I am writing a function that takes a associative array containing what is returned by Net::LDAP. I am passing it to the function like this... my %results=mwc_dhcp_host_add({%ldapconnection}, $config{ip},$config{mac}, $config{baseDN},

Re: Issues passing around the associative array containing the Net::LDAP object.

2006-09-19 Thread Peter Marschall
Hi, not a perl-ldap problem but a general Perl question: 1) Hashes in Perl are case-sensitive: ldap vs. LDAP. 2) You need to write $ldapcnnection->{ldap} or $$ldapconnection{ldap} as $ldapconnection is a hash ref Hope it helps Peter On Tuesday, 19. September 2006 17:58, Zane C. Bowers wrote

Re: Issues passing around the associative array containing the Net::LDAP object.

2006-09-19 Thread Zane C. Bowers
On Tue, 19 Sep 2006 20:49:44 +0200 Peter Marschall <[EMAIL PROTECTED]> wrote: > Hi, > > not a perl-ldap problem but a general Perl question: > 1) Hashes in Perl are case-sensitive: ldap vs. LDAP. > 2) You need to write $ldapcnnection->{ldap} or $$ldapconnection{ldap} > as $ldapconnection is a