in reply to Hash sorting

In other words, you would've found this problem immediately by using strict because it would've complained that $value wasn't in scope. :-)

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.