%A = (a => 1, b => 2, c => 3); %Z = (z => 9, y => 8, x => 7); @all_keys = (keys %A , keys %Z); print "@all_keys"; __END__ a b c x z y