push @data, "$_: $hash{$_}\n" for grep exists $hash{$_}, @array; [download]
In reply to Re: Re: extracting values from hashes by Anonymous Monk in thread extracting values from hashes by Anonymous Monk