jjohhn has asked for the wisdom of the Perl Monks concerning the following question:
my %cons; my $text; my $count; while(<>){ $text = m/\|(.*?\|){5}(.*?)\|(.*?\|){3}(SNOMEDCT)/; if ($text){ print "$_\n"; } $cons{$2}++; } my $count = keys %cons; print "$count";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: unique fields in bar delimited record
by friedo (Prior) on May 16, 2005 at 12:23 UTC | |
by jjohhn (Scribe) on May 16, 2005 at 12:43 UTC | |
by tlm (Prior) on May 16, 2005 at 18:23 UTC | |
|
Re: unique fields in bar delimited record
by jhourcle (Prior) on May 16, 2005 at 12:25 UTC | |
|
Re: unique fields in bar delimited record
by Fletch (Bishop) on May 16, 2005 at 14:10 UTC |