my %hash = ( foo => 1, bar => 2, baz => (), qux => 3); print keys %hash;