get_ids({'id_one' => 1, 'id_two' => 2, 'id_three' => 3}) #### get_ids({'id_one','id_two','id_three'}) #### sub get_ids { $id_hashref = shift; map { print "key $_ exists in the request\n" } (keys %{$id_hashref}); }