Re: Puzzle: Know Your Data

2005-08-12 Thread Graeme St.Clair
depended on whether 'use locale' was included. Looking forward to the answer, GStC. - Original Message - From: "Ugly Virgin" <[EMAIL PROTECTED]> To: "Jeff 'japhy' Pinyan" <[EMAIL PROTECTED]> Cc: Sent: Friday, August 12, 2005 1

Re: Puzzle: Know Your Data

2005-08-12 Thread Ugly Virgin
Jeff 'japhy' Pinyan wrote: Here's an interesting exercise for beginners. You have an array of strings, and you want to sort them but in a case-insensitive manner. You are doing this in two different places in your code. In one place, you write: # convert the strings to lowercase when com

Puzzle: Know Your Data

2005-08-12 Thread Jeff 'japhy' Pinyan
Here's an interesting exercise for beginners. You have an array of strings, and you want to sort them but in a case-insensitive manner. You are doing this in two different places in your code. In one place, you write: # convert the strings to lowercase when comparing my @sorted = sort {