in reply to Matching values between two arrays of hashes.
If it is not numeric, make %filters_locations a hash.my @filters_locations; $filters_locations[$_]=1 for map {$_->{location_id}} @filters_info;
Later, you can lookup the selected location by indexing into @filter_locations (or the hash).
"By three methods we may learn wisdom: First, by reflection, which is noblest; Second, by imitation, which is easiest; and third by experience, which is the bitterest." -Confucius
|
|---|