Advertisement

04.25.2008 at 02:15PM PDT, ID: 23354990
[x]
Attachment Details

Multi Level Sorting Algorithm in Perl

Asked by dyoung520 in Perl Programming Language, Miscellaneous Programming, Algorithms

Tags: Perl

Given a hash : %detailModel

with keys: $model = "Alpha Name of Automobile"

Holds Values as Pipe Delimited (E.G): PICKUP 1/2T|999999|1999|DODGE|2003|99

So Thats: Make|Account|Year|Make|TaxYear|Seq

I want to sort this data by model, make, year, seq

I am lost on how I should go about this.

When I initially loaded the hash if there were multiple occurrences of the same model I just tacked on a decimal to the word (e.g. pickup 1/2.1).  This actually worked and got me around that so I could use a hash as the sorting function.  However if I reload a hash with a new key after sorting it once I will lose the sort from the first sort... hope that made sense.

I figure somebody will get kinda what I talking about and have at least some pseudo code that will shed some light on this.

I am a beginner with Perl so please add some comments/explanation to any code.

Thanks in Advance!

Start Free Trial
 
 
[+][-]04.25.2008 at 02:24PM PDT, ID: 21443307

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.25.2008 at 02:26PM PDT, ID: 21443313

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.25.2008 at 02:33PM PDT, ID: 21443355

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Perl Programming Language, Miscellaneous Programming, Algorithms
Tags: Perl
Sign Up Now!
Solution Provided By: ozo
Participating Experts: 2
Solution Grade: A
 
 
[+][-]04.25.2008 at 02:33PM PDT, ID: 21443356

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.25.2008 at 02:42PM PDT, ID: 21443404

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.25.2008 at 02:42PM PDT, ID: 21443407

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.25.2008 at 03:02PM PDT, ID: 21443511

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.25.2008 at 03:03PM PDT, ID: 21443522

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.25.2008 at 03:10PM PDT, ID: 21443549

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.25.2008 at 03:17PM PDT, ID: 21443587

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.25.2008 at 08:49PM PDT, ID: 21444416

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.25.2008 at 11:41PM PDT, ID: 21444739

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.26.2008 at 08:15AM PDT, ID: 21445785

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628