Thanks Bob and John, 

That must be in perldoc sine you both had the same example but I couldn't 
find it and the perldoc your recommended Bob couldn't be found!

I like this very much and I'm assuming it's faster than 
putting them in hash and returning the keys as an array since you don't have to build 
a hash.

Thanks again guys!

Dan

@unique = do {
        my %seen; 
        grep !$seen{$_}++, @arr
};

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to