in reply to Re: finding matches in the same array
in thread finding matches in the same array
my %oc; for (0 .. $#sequence) { $oc{$sequence[$_]}[0] = ($oc{$sequence[$_]}[0]+$numbers[$_])/(++$oc{$sequence[$_]}[1]); } foreach my $seq (keys %oc) { print "The average for $seq is ".$oc{$seq}[0].$/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: finding matches in the same array
by polettix (Vicar) on Apr 13, 2005 at 18:19 UTC |