my @uniq = keys %{ {%hash1, %hash2} }; [download]
In reply to Syntax explanation required by ghosh123