I want to find the easiest way of finding the hash values
City {
city1 -> Street1 -> [ high_street , 2]
street2 -> [ low_street , 2]
city2 -> Street1 -> [ high_street1 , 2]
street2 -> [ low_street2 , 2]
city3 -> Street1 -> [ high_street1 , 1]
street2 -> [ low_street2 , 1]
}
This structure is sorted into a hash. How do I find the smallest value of the second elements of the arrays inside the second level of hashes?
I am expecting my smallest value to be - City3, street 1 - highstreet 1. This based on last value which is avilable at only one time. But 2 elements in the array has 1 times. But I just want to know first element first.
Is there any easy to find it?