Two comments to this, though.
The {1} quantifier in my $KEY = qr/>([A-Z]{1})/; doesn't serve any purpose.
But more importantly, your solution doesn't offer the dashes for those cases where no records were found for a given letter - something which is part of the original specification.
In reply to Re^2: hash of hashes?
by muba
in thread hash of hashes?
by sanahmed
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |