Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
open(CDR, $CDR); open(SORTED_CDR, ">$SORTED_CDR"); @ARRAY=<CDR>; my @unique = do {my %h; grep {!$h {$_} ++} @ARRAY}; print SORTED_CDR @unique;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: print out duplicate records
by graff (Chancellor) on Aug 02, 2002 at 02:18 UTC | |
|
Re: print out duplicate records
by DamnDirtyApe (Curate) on Aug 02, 2002 at 02:18 UTC | |
|
Re: print out duplicate records
by BrowserUk (Patriarch) on Aug 02, 2002 at 06:01 UTC | |
by Anonymous Monk on Aug 02, 2002 at 19:54 UTC |