On 2/9/07, Sayed, Irfan (Irfan) <[EMAIL PROTECTED]> wrote:

I have one array say @test = (1,2,3,2,5). Now if you observe 2 is
repeating in this array on second position and fourth position.

My requirement is that if such value is repeating twice then i just want
to remove one value and keep other value.

Have you checked the Perl FAQ? It covers this. Search for the question
"How can I remove duplicate elements from a list or array?", or use
this command:

   perldoc -q duplicate

Hope this helps!

--Tom Phoenix
Stonehenge Perl Training

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


Reply via email to