in reply to Add array ref to another array ref
It's an FAQ! How do I merge two hashes?
If you have hashrefs rather than hashes you will additionally need to handle the dereferencing of course, but the principle is the same.