Use a hash to store the IDs. Since hashes always have unique keys, you'll get automatic duplicate removal.
See also: perlintro, perldata, perlretut.
In reply to Re: removing duplicates from a string list
by moritz
in thread removing duplicates from a string list
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |