|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re^2: ordering array of sentencesby kennethk (Monsignor) |
| on Nov 13, 2012 at 16:26 UTC ( #1003657=note: print w/ replies, xml ) | Need Help?? |
|
Be aware there are two potential issues here, which are contained in the sentence I'm searching. First, \w+ will not match on the apostrophe, so you'll end up sorting on m instead of I'm. If you fix that, you'll still get an incorrect result because cmp is case sensitive. #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||