in reply to Sorting an array of hashes

You should use warnings;, this will give you the hint ;-)

-- Frank