The immediate problem is that your RDup routine is returning a new array that you're not saving. IOW do something like this:
There are a lot of ways you can improve removing duplicates, though, and there are several suggestions in the Perl FAQ list. Try perldoc -q duplicate on your machine for some suggestions.@unique = RDup(@unique);
In reply to Re: removing duplicates entries from an array
by VSarkiss
in thread removing duplicates entries from an array
by JFarr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |