Re: simple sort howto

2008-11-28 Thread John J. Foster
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

Re: simple sort howto

2008-11-28 Thread Chas. Owens
On Fri, Nov 28, 2008 at 21:43, John J. Foster <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm using a little perl script > (http://bsdconsulting.no/tools/mutt-ldap.pl) to query addresses from > within mutt. I'd like this script to return a sorted list, either by email > address or name. The little res