in reply to Mapping restrictions
my %h2 = map { $_ => $h1{$_} } grep { exists $h1{$_} } @set; [download]
my %h2 = map { exists $h1{$_} ? ($_ => $h1{$_}) : () } @set; [download]