in reply to Help on array element counting
my %fruits; $fruits{$_}++ for ( @fruits ); my ( $fruit, $count ); for ( $fruit, $count ) ( each %fruits ) { print "$fruit => $count\n"; }
--
TTTATCGGTCGTTATATAGATGTTTGCA
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Help on array element counting
by Anonymous Monk on Oct 27, 2003 at 19:35 UTC | |
by monktim (Friar) on Oct 27, 2003 at 19:45 UTC | |
by Art_XIV (Hermit) on Oct 27, 2003 at 20:40 UTC | |
by monktim (Friar) on Oct 27, 2003 at 20:59 UTC | |
by jeffa (Bishop) on Oct 27, 2003 at 19:58 UTC |