On Fri, Nov 28, 2008 at 10:21:03PM -0500, Chas. Owens wrote:
 
> It looks like you need a schwartzian transform* on the results of
> $mesg->all_entries:
> 
> #replaces "foreach my $entry ($mesg->all_entries) {"
> my @entries =
>         map  { $_->[0]                       }
>         sort { $a->[1] cmp $b->[1]           }
>         map  { [ $_, $_->get_value('mail') ] }
>         $mesg->all_entries;
> 
> for my $entry (@entries) {
> 
> You can sort on names by changing 'mail' to 'cn'.
> 
> 
> * http://www.perlfoundation.org/perl5/index.cgi?schwartzian_transform

Thank you, thank you
festus

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to