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