in reply to Add array ref to another array ref

After you succeed in merging two hashes, the keys will be in random order. If this is a problem, refer to FAQ:
perdoc -q "How do I sort a hash"
Bill