sub my_function { my $arr_ref = shift; ... } #### my_function([keys %hash])