No such thing as a small change | |
PerlMonks |
Remove similar key=value pair from HOHby vaibhav07 (Acolyte) |
on Apr 11, 2015 at 19:13 UTC ( [id://1123144]=perlquestion: print w/replies, xml ) | Need Help?? |
vaibhav07 has asked for the wisdom of the Perl Monks concerning the following question:
I am extracting key value pairs from %hash, but in case if key=values are similar, it should pick only one entry of it rather than picking both the entries. Output from my code FILE=fileA err=99 script:foo.pm foo.pm FILE_READ=fileB err=99 err=20 testset:test1 Output required FILE=fileA err=99 script:foo.pm foo.pm FILE_READ=fileB err=20 testset:test1 Should list only one entry of err=99 rather than two entries Code used
Back to
Seekers of Perl Wisdom
|
|