I have multiple values for each key in the hash. Here, I print the values of each key
print "$var:",join ',',@{$hash{$var}},"\n";
Output of the above print statement is:
ABC:1,2,3,1,4,2,
DEF:9,3,4,5,3,5,
Now, I want to remove duplicates in the values. The desired output is,
ABC:1,2,3,4
DEF:9,3,4,5
Can someone help me in this?
Thanks