I have an array of hashes, each hash contains the same keys, but the values ββare unique. Based on the specific value, I need to save the hash code.
See the example below to get it right:
my @aoaoh = (
{ a => 1, b => 2 },
{ a => 3, b => 4 },
{ a => 101, b => 102 },
{ a => 103, b => 104 },
);
Now I will check if the hash key contains a avalue 101. If so, then I need to save the entire hash code.
How to do it?
source
share