Quote:
Originally Posted by ephemera
i am not sure why they haven't used a hash reference. possibly for a small performance gain?
|
Maybe I can make the thing clearer: the array/hash I want to build will be given to the add method of the Perl::LDAP:
Code:
$ldapHandle->add($dn, attr => $attributes);
A function example looks like this:
Code:
$result = $ldap->add("uid=john,ou=People,dc=leapster,dc=org",
attr => [ 'cn' => 'John Smith',
'sn' => 'Smith',
'uid' => 'john',
'givenName' => 'John',
'homePhone' => '555-2020',
'mail' => 'john@domain.name',
'objectclass' => [ 'person', 'inetOrgPerson']
]
);
Am I expected to work with an array or an hash?