Hello,
The thread you recommended does not directly answer my question. I hope you will be able to help me.
The programming language I am using is perl.
I have the following:
%a=(A1=>[UP1,UP3,UP6],
A2=>[UP1,UP6],
A3=>[UP2,UP10],
);
%b=(UP1=>[UP2,UP3,UP7],
UP2=>[UP10,UP9,UP3],
UP5=>[UP1,UP11],
);
Please keep in mind that the keys are...
User Profile
Collapse
-
Comparing hash of arrays
Hello,
I have a different question on hash of arrays.
The programming language I am using is perl.
I have the following:
%a=(A1=>[UP1,UP3,UP6],
A2=>[UP1,UP6],
A3=>[UP2,UP10],
);
%b=(UP1=>[UP2,UP3,UP7],
UP2=>[UP10,UP9,UP3],
UP5=>[UP1,UP11],
);
Please keep in mind that the keys are different,...Leave a comment:
-
Hash of arrays
I want to compare 2 hashes of arrays in the following manner:
Example:
%hoa=(A1=>[UP1,UP3,UP6],
A2=>[UP1,UP6],
A3=>[UP2,UP10],
);
%hoadip=(UP1=>[UP2,UP3,UP7],
UP2=>[UP10,UP9,UP3],
UP5=>[UP1,UP11],
);
Question:
1. Compare the values of %hoa with the keys of %hoadip
2. Then for each key matched, compare the values...
No activity results to display
Show More
Leave a comment: