My problem is in the comparison within the hash. I seem to loose the very first duplicate name. I understand why, but am unclear with a solutionmy %seen = (); while (<DATA>) { if ($seen{$name}++) { push @names, $name; } }
In reply to capturing duplicates by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |