Re: Sorting mixed alphanumerics

2009-10-18 Thread Rick Triplett
Many thanks to Scott, Shawn, Paul, Jenda, and Uri. I've learned something from each of you, and appreciate your taking the time to help! Rick -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Sorting mixed alphanumerics

2009-10-14 Thread Shawn H Corey
Rick Triplett wrote: I need to sort the keys in a hash. The keys are the question number and the values are the student's answer. A numeric sort with = won't work since retaking a missed question (say, 2) produces the new key, 2h with its new answer. A representative hash might look like this

Re: Sorting mixed alphanumerics

2009-10-14 Thread Paul Johnson
On Tue, Oct 13, 2009 at 11:09:09AM -0500, Rick Triplett wrote: I need to sort the keys in a hash. The keys are the question number and the values are the student's answer. A numeric sort with = won't work since retaking a missed question (say, 2) produces the new key, 2h with its new

Re: Sorting mixed alphanumerics

2009-10-14 Thread Jenda Krynicky
Date sent: Wed, 14 Oct 2009 11:03:13 -0400 From: Shawn H Corey shawnhco...@gmail.com To: Rick Triplett r...@reason.net Copies to: Perl Beginners beginners@perl.org Subject:Re: Sorting mixed alphanumerics Rick

Re: Sorting mixed alphanumerics

2009-10-14 Thread Shawn H Corey
Jenda Krynicky wrote: ST is an overkill if the extraction is simple. Especially if the number of items is fairly small. Actually if the extraction is really simple and the extracted key is not so small, than ST may perform worse than an ordinary sort doing the extraction within the

Re: Sorting mixed alphanumerics

2009-10-14 Thread Uri Guttman
SHC == Shawn H Corey shawnhco...@gmail.com writes: SHC Jenda Krynicky wrote: ST is an overkill if the extraction is simple. Especially if the number of items is fairly small. Actually if the extraction is really simple and the extracted key is not so small, than ST may

RE: Sorting mixed alphanumerics

2009-10-14 Thread Hall, Scott
-Original Message- From: Rick Triplett [mailto:r...@reason.net] Sent: Tuesday, October 13, 2009 12:09 PM To: Perl Beginners Subject: Sorting mixed alphanumerics I need to sort the keys in a hash. The keys are the question number and the values are the student's answer. A numeric sort

Re: Sorting mixed alphanumerics

2009-10-14 Thread Jenda Krynicky
From: Shawn H Corey shawnhco...@gmail.com Jenda Krynicky wrote: ST is an overkill if the extraction is simple. Especially if the number of items is fairly small. Actually if the extraction is really simple and the extracted key is not so small, than ST may perform worse than an