in reply to Re: Problem in a Loop
in thread Problem in a Loop
my $freqocurrence={}; sub freq_oc{ foreach my $key (keys %$observation){ $total10 += $observation->{$key}; } foreach my $key (keys %$observation){ $freqocurrence->{$key} = $observation->{$key}/$total10; print "Frequency of ocurrence: Aminoacid $key-> $freqocurrence +->{$key}\n"; } } print Dumper $freqocurrence;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Problem in a Loop
by hdb (Monsignor) on Sep 19, 2013 at 13:28 UTC |