in reply to Re^2: sorting hashes
in thread sorting hashes

Hello again,
the = sign was a typo that is not present in my original code - sorry about that, same with the print statement - was just to indicate that there was some output.

The solution was indeed to use sort with just $a and $b - yep, Perl is not my first language.

Thank you all for the exceptionally quick replies.

rgds,
Ole C.

Replies are listed 'Best First'.
Re^4: sorting hashes
by blazar (Canon) on Apr 20, 2005 at 13:45 UTC
    Hello again,
    the = sign was a typo that is not present in my original code - sorry about that, same with the print statement - was just to indicate that there was some output.
    There's a lesson in this, and an oft advocated one: do not retype code, paste it. (In this case not much harm was being done, but it's a good general rule to stick to, if possible.)