my %tmp = %{$hash{$key}}; printf($format, $key, @tmp{@keys}); #### printf($format, $key, @{$hash{$key}{@keys});