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

Thanks Friedo,
The order does not matter actually, and as I was posting I was thinking about the use of a hash, just populating it with dummy data for key manipulation bothered me for some reason. Now that I think about it though that might be the best way to do it. Thanks =)
Regards Paul

Replies are listed 'Best First'.
Re^3: Adding Unique Elements to Array
by melora (Scribe) on Feb 28, 2005 at 18:58 UTC
    That's the way I do it. It avoids having to test for duplicates (in my code, anyway). Also, if I need 'em in order I can use sort keys.. I'm relieved to see that mentioned here. I was afraid I was the only one doing it, and that there was a far better way.