in reply to Thanks again no Time Out No Duplicates

Didn't you read the replies to your last thread? Create a hash, and add a key for each item in your list. Then use keys %hash to get your list of unique items. If you need to sort it, you can also remove nonunique items very easily from a sorted list with:
my ( @res, $last ); foreach my $item ( @sorted ) { next if ( defined $last and $item eq $last ); push @res, $item; $last = $item; };
This has the side effect of preserving the order of the list.

Replies are listed 'Best First'.
Re: Re: Thanks again no Time Out No Duplicates
by ysth (Canon) on Feb 06, 2004 at 18:39 UTC
    To be fair, some of the answers to his original question were somewhat off or presented as "the one true solution" when they were not all that certain to be applicable.

    But there was enough there that he could have tried and then asked further saying what had/hadn't worked.