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.