⭐ in reply to How do I find if an array has duplicate elements, if so discard it?
foreach(@legit) { unless($b{$_}++) { push(@uniq,$_); } } [download]