Perl: the Markov chain saw | |
PerlMonks |
Re^4: Need to find unique values in hashby dipit (Sexton) |
on Feb 05, 2019 at 08:00 UTC ( [id://1229376]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|