I have an array of hashes as follows:
array = [{"name"=>"Nish", "age"=>27, "place"=>"xyz"},
{"name"=>"Hari", "age"=>26, "place"=>"xyz"},
{"name"=>"Anan", "age"=>28, "place"=>"xyz"}]
I want to select the hashes with age 27 and 26
How to achieve that.