in reply to sorting hash ref

Did you notice that every new line you read from your INPUT file, you initialize the 'hash table' ? This way you'll never be able to sort, since at
any given time you have one value in the hash.
Secondly you might want to take the 'foreach' loop outside of the 'while loop'. Tried it out and it works, all sorted.

Replies are listed 'Best First'.
Re^2: sorting hash ref
by perlboer (Acolyte) on Jun 10, 2005 at 14:30 UTC
    cool_jr256,

    Gaze (stare) to this code all day, I didn't saw it.
    Thank you very much for your quick response!
    Perlboer.