SFantar wrote: > Hello everyone Hello,
> I would like to sort an array so that it does not contain any values > twice or three times. > > Unfortunately, perldoc -q sort does not help me very much. > Here is an example of this array : > > @array = ('smith ', 'john ', 'edward ', 'smith ', 'edward ', 'john '); > > I would like to have : @array1 = ('smith ', 'john ', 'edward '); > > Thanks in advance for your help and especially your explanations. That is explained in the FAQ: perldoc -q "How can I remove duplicate elements from a list or array" John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>