
sleuth
Enthusiast
Oct 31, 2000, 12:46 PM
Post #3 of 7
(5527 views)
|
Re: extracting unique elements of array
[In reply to]
|
Can't Post
|
|
Sheesh Japhy, You know the perl doc like the back of your hand :) I couldn't even find it there so I would like to add to that. I think this code would be easy to use. Japhy, your the one who taught me it too. undef %seen; @unique=grep(!$seen{$_}++, @old); And if you want to do specific field duplicate removal, then search forum posts, you'll find it, Japhy wrote out a whole block of code for it and It's really a good lesson. Sleuth
|