my %fruits; $fruits{$_}++ for ( @fruits ); my ( $fruit, $count ); for ( $fruit, $count ) ( each %fruits ) { print "$fruit => $count\n"; }
--
TTTATCGGTCGTTATATAGATGTTTGCA
In reply to Re: Help on array element counting
by TomDLux
in thread Help on array element counting
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |