use strict; use warnings; my @gene; while (<>) { my $i = 0; for my $char ( split '', (split)[1] ) { $gene[$i++]{$char}++; } } my $i = 0; for my $pos (@gene){ print "\nPOS: ", $i++; for my $key ( sort keys %$pos){ print " | $key => ", $pos->{$key}; } };
In reply to Re: What is wrong in this code???
by thundergnat
in thread What is wrong in this code???
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |