You have to rewrite the code so, that it sorts using the string comparitor (cmp) and you have to dereference the Hash of Hashes with an arrow operator.
sort { $products{$a}->{"name"} cmp $products{$b}->{"name"} }
In reply to Re: How do I sort a Hash of Hashes?
by neuroball
in thread How do I sort a Hash of Hashes?
by greywolf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |