Dharmendra rai wrote: > have u seen the values in @unique when @all_elements contains (1,2,3,1,2) when u >apply @unique = grep { !$seen{$_}} @all_elements ??? > > its is not working .... > > > > > --------------------------------- > Get a bigger mailbox -- choose a size that fits your needs. >
sorry All @unique = grep{!$seen{$_}++} @all_elements; works fine -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]