in reply to Union of hashes
map {$b{$_} = $a{$_}} keys %a; [download]
print "hello world"; [download]
print $_ for split //, "hello world"; [download]
-- Randal L. Schwartz, Perl hacker
Like masem's most excellent Hash::Merge. It does deep hashes, and optionally does true copies instead of references.