in reply to Removal of duplicated element in array.
How exactly does it not work? What exactly is in $1? What output do you expect? Are you aware that the code as-is splits on newline characters, which means that "duplicate items" actually mean "duplicate lines"?
If you want to deduplicate a list, I recommend List::MoreUtils::uniq.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Removal of duplicated element in array.
by tty1x (Novice) on May 06, 2013 at 14:10 UTC | |
by 2teez (Vicar) on May 06, 2013 at 14:15 UTC | |
by Limbic~Region (Chancellor) on May 06, 2013 at 18:11 UTC | |
by 2teez (Vicar) on May 06, 2013 at 21:40 UTC |