... %$hash_ref or return; # just return ... $key; # or last line in sub returns a scalar