in reply to keep only unique elements in an array displaying number of duplcates.
Also... my $col_name = $elements[1]; # don't print # just count them # print " $col_name \n" if ! $seen{$col_name}++; $seen{$col_name}++; } while ( my ( $col_name, $times_seen ) = each %seen ) { print "$col_name: $times_seen\n"; }
What is that? Why two commas? Why "1"? Is that a Windows thing?open (INPUT,"$INFILE") or die "\n$filerror\$INFILE",,1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: keep only unique elements in an array displaying number of duplcates.
by john.tm (Scribe) on Jul 28, 2014 at 04:55 UTC | |
|
Re^2: keep only unique elements in an array displaying number of duplcates.
by Anonymous Monk on Jul 28, 2014 at 07:04 UTC |