Update: but see ccn's reply below for a better solution.foreach my $entry ($result->all_entries()) { foreach ($entry->attributes()) { my (undef, $val) = $entry->get_value($_) $r->{$entry->dn()}{$_} = $val ? [ $entry->get_value($_) ] : $entry->get_value($_); } }
In reply to Re: Returning single or multiple values?
by Arunbear
in thread Returning single or multiple values?
by sschneid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |