Thank you POJ. This really helped but i am still not able to figure out, how to print the duplicates? This way, only unique elements will be present in hash and i am successfully able to get the hash. Can you please help in providing how can i print which value/values are repeated for their respective keys?
Well, I need to print above according to this :
++$count2{$key}{$_} for @{$hash{$key}};In reply to Re^4: Need to find unique values in hash
by dipit
in thread Need to find unique values in hash
by dipit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |