Re: [nlug] Perl Name Sort

2014-08-23 Thread John F. Eldredge
This will be useful. I use Perl quite often for various utility programs. On August 22, 2014 10:13:39 PM CDT, Paul Boniol wrote: > That did it! :) At least it ignores the apostrophe, and set it to > ignore > accents (I don't think we have any names with them, but you never > know.when > that mi

Re: [nlug] Perl Name Sort

2014-08-22 Thread Paul Boniol
That did it! :) At least it ignores the apostrophe, and set it to ignore accents (I don't think we have any names with them, but you never know.when that might happen.) I'm still familiarizing myself with the parameters, but this code seems to be pretty much what I want. my $coll = Unicode::Coll

Re: [nlug] Perl Name Sort

2014-08-22 Thread Brian Pitts
You may want Unicode::Collate:Locale ||| |||http://search.cpan.org/~sadahiro/Unicode-Collate-1.07/Collate/Locale.pm http://www.perl.com/pub/2012/06/perlunicook-unicode-locale-collation.html On 08/22/2014 06:34 PM, Paul Boniol wrote: I know there must be some Perl module out there I'm overlookin

[nlug] Perl Name Sort

2014-08-22 Thread Paul Boniol
I know there must be some Perl module out there I'm overlooking. I need to sort data by name. According to the Chicgo Manual of Style / US Phone book, you don't do just a normal sort. E.g. O'Reilly is treated as OReilly (case insensitive). (Some variations say last names starting with Mc should