Take a look at the uniq() function in List::MoreUtils for an elegant (perlish) solution.
In reply to Re: Can't remove the the duplicate element when it's the last one in the array
by WizardOfUz
in thread Can't remove the the duplicate element when it's the last one in the array
by littlehorse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |