in reply to Re: Removing duplicate hashrefs from an array
in thread Removing duplicate hashrefs from an array

Thank you LanX. I should have thought on that - the uniqueness of the href. However, as you suggested, I concatenated the values, and that did the trick. :) But, there should be a straight forward method to compare these hashes within the array. Anyway, Thanking everyone for the suggestions.
  • Comment on Re^2: Removing duplicate hashrefs from an array

Replies are listed 'Best First'.
Re^3: Removing duplicate hashrefs from an array
by LanX (Saint) on Oct 06, 2014 at 10:42 UTC
    > But, there should be a straight forward method to compare these hashes within the array

    Look the point is that your whole data structure is not straight forward.

    Why an AoH if you want uniqueness?

    And which entry should be unique, really both or all??

    Using %seen if common knowledge (see FAQ) and "combined uniqueness" needs combination, that's to unusual for a special operator and straight forward to implement.

    Cheers Rolf

    (addicted to the Perl Programming Language and ☆☆☆☆ :)