Re: sort without ignoring hyphens
- From: krahnj@xxxxxxxxx (John W. Krahn)
- Date: Sat, 29 Mar 2008 14:19:06 -0700
tc314@xxxxxxxxxxx wrote:
When I do string comparisons in perl the strings seem to ignore the
embedded hyphens.
I want to sort strings assuming the 'dictionary' order of the chars is
ASCII order: hypen, 0-9, A-Z.
It appears linux sort also has the problem (LC_ALL is blank).
Any ideas? I want to avoid a brute force char by char sort if
possible.
Please provide an *example* of your data, what it would look like if sorted "properly", and what it actually looks like after being sorted.
John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
.
- Follow-Ups:
- Re: sort without ignoring hyphens
- From: tc314
- Re: sort without ignoring hyphens
- References:
- sort without ignoring hyphens
- From: tc314
- sort without ignoring hyphens
- Prev by Date: Re: Interpolate variable in a __DATA__ block
- Next by Date: Inappropriate ioctl for device
- Previous by thread: Re: sort without ignoring hyphens
- Next by thread: Re: sort without ignoring hyphens
- Index(es):
Relevant Pages
|