in reply to Re^7: Remove similar key=value pair from HOH
in thread Remove similar key=value pair from HOH

> My only point was to explain why the OP's code did not work as expected

Look what the OP wrote (in a badly formatted way) is

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

I have the biggest problems seeing a code who could possibly produce err=99 and err=20 out of a hash.

He never gave us the full picture, we had no possibility to know what his real problem is and "what didn't work as expected."

And for completeness the "solution" he posted is IMHO still buggy, b/c it'll filter ALL duplicates, not only for key 'err'.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!