in reply to Unique elements in array
my %unique; my @ids = map { chop; my @fld = split /\t/; !defined( $unique{ $fld[0] } ) && $unique{ $fld[0] }++ && $fld[0]; } <$fileHandle>;
^M Free your mind!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Unique elements in array
by chromatic (Archbishop) on May 09, 2007 at 17:28 UTC | |
by Moron (Curate) on May 10, 2007 at 09:55 UTC |