in reply to How to sort a non-unique value within unique values
Then to sort them:push @{$testcenters{$o_city}, $o_tcenter;
(I could make lots of comments about your variable names, using strict.pm, the way you've embedded HTML in your code, etc, etc, etc. But I'd wind up writing a book, so I'll just suggest reading Perl Best Practices and Code Complete instead.)for my $city (sort keys %testcenters) { for my $center (sort @{$testcenters{$city}}) { print "$city: $testcenters<br>"; } }
|
|---|