in reply to How to extract part of a hash
%pets = map { $_ => $hash{$_} } qw( dog cat ); [download]
Edit: Got rid of "concise". It did not convey my meaning very well :(