Hi Ulrich,

On Wednesday 11 August 2004 15:41, Ulrich Windl wrote:

> studying the documentation of Net::LDAP::Search's sorted routine, I was
> wondering
> whether the routine uses LDAP's object comparison methods (which would
> be rather
> heavy weighted). The documentation is unclear about that:
> ---
> =item sorted ( [ ATTR_LIST ] )
>
> Return a list of L<Net::LDAP::Entry> objects,
> sorted by the attributes given in ATTR_LIST.  The attributes are
> compared in the order specified, each only being compared if all
> the prior attributes compare equal. If all the specified attributes
> compare equal then the DN is used to determine order.
> ---
>
> Inspecting the implementation, I found out that you simply use the
> "cmp" operator
> to compare strings. The code is a bit too dense for me to understand
> fully,
> however.

I have added a line to Search.pod in SVN head that makes this a bit clearer.

Peter

-- 
Peter Marschall
eMail: [EMAIL PROTECTED]

Reply via email to