How can I combine hashes in Perl?

后端 未结 4 936
天命终不由人
天命终不由人 2020-11-29 00:29

What is the best way to combine both hashes into %hash1? I always know that %hash2 and %hash1 always have unique keys. I would also prefer a single line of code if possibl

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-29 01:17

    This is an old question, but comes out high in my Google search for 'perl merge hashes' - and yet it does not mention the very helpful CPAN module Hash::Merge

提交回复
热议问题