Hello everyone

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.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to