Sorry if this is too simple of a question but, if I have two associate arrays how can I combine them into one?
%hash1 = (
'key1', 'value1',
'key2', 'value2',
);
%hash2 = (
'key3', 'value3',
'key4', 'value4',
)
%mainhash = ???
Or can I just add one hash to another?
Thanks for the help in advance.
%hash1 = (
'key1', 'value1',
'key2', 'value2',
);
%hash2 = (
'key3', 'value3',
'key4', 'value4',
)
%mainhash = ???
Or can I just add one hash to another?
Thanks for the help in advance.