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

Yes, from vaibhav07's answer, it clearly appears, AnomalousMonk, that you were right. My only point was to explain why the OP's code did not work as expected, I did not try to make assumptions about the desired result (although I had some ideas thereon).

Je suis Charlie.
  • Comment on Re^7: Remove similar key=value pair from HOH

Replies are listed 'Best First'.
Re^8: Remove similar key=value pair from HOH
by LanX (Saint) on Apr 12, 2015 at 22:54 UTC
    > 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!