Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Sorting by the value of the inner hash

by DamnDirtyApe (Curate)
on Mar 31, 2004 at 07:26 UTC ( #341233=note: print w/replies, xml ) Need Help??


in reply to Sorting by the value of the inner hash

I'm going to suggest you do the following:

  • Provide a sample of real data you're feediing into this chunk of code
  • Provide the actual results you're getting
  • Provide the precise results you expected to get

That aside, is it possible that $totalscoreinv{$key1}{key2} is supposed to be $totalscoreinv{$key1}{$key2}?


_______________
DamnDirtyApe
Those who know that they are profound strive for clarity. Those who
would like to seem profound to the crowd strive for obscurity.
            --Friedrich Nietzsche
  • Comment on Re: Sorting by the value of the inner hash

Replies are listed 'Best First'.
Re: Re: Sorting by the value of the inner hash
by Anonymous Monk on Mar 31, 2004 at 07:46 UTC
    Answering the third point, I expect the following
    First key:700200 523246= -438.024029240629 523247= -470.547762535975 523237= -494.393864137596 523261= -509.711586526694 523424= -521.488541326437

      That's great, but those points aren't mutually exclusive. We really need you to answer all of them to provide you with any useful information.

      TIP: Put use strict; at the beginning of this script, and every script you write from now on. You'll thank me one day.


      _______________
      DamnDirtyApe
      Those who know that they are profound strive for clarity. Those who
      would like to seem profound to the crowd strive for obscurity.
                  --Friedrich Nietzsche
        1. I answered your second point in my reply to matija
        2. The input is a huge hash (HOH) table with the same data distribution you can see in the results table(second point).
        3. The code I provided is an excerpt of a whole program, and the only thing is missig is the sorting. I am using strict and warnings.
        4. I really don't know what else you need unless you want the whole program that is more than 6 pages
        Thanks

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://341233]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2020-05-31 23:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (177 votes). Check out past polls.

    Notices?