in reply to Re: Removal of duplicated element in array.
in thread Removal of duplicated element in array.
The problem is simply that the OP is making the suggested corrections on a piece of code that is different from what he has presented (as he has admitted in his cross-post on a different forum).
@ tty1x: we cannot guess what other bugs you have in your code if you don't tell us what this code is.
In Section
Seekers of Perl Wisdom