in reply to Re: Adding Unique Elements to Array
in thread Adding Unique Elements to Array

Recall, however, that "last in wins" when populating a hash.

OP appears to want not only to assure uniqueness (without testing) but also "only allow the value onto the array if it is not already included." (emphasis mine)

Replies are listed 'Best First'.
Re^3: Adding Unique Elements to Array
by friedo (Prior) on Feb 28, 2005 at 20:06 UTC
    But neither of the above solutions puts the elements in hash values. Either we're using the keys as an unsorted array directly, or using the keys as a separate boolean record of what's already in there.