in reply to Duplicate fields
Ugly, messes with the values of your data, but may be what you are looking for.... my $past=""; for my $record (sort @records){ chomp $record; if ($record !~ /^$past/{ push @uniq, $past; } $past=$record; } push @uniq, $past; ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Duplicate fields
by mzedeler (Pilgrim) on Jul 28, 2009 at 10:47 UTC | |
by Utilitarian (Vicar) on Jul 28, 2009 at 11:03 UTC |