sub printcells { my $href = shift; my $html; $html .= "$thishash{$_}" foreach sort { $href->{$b} <=> $href->{$a} } keys %$thishash; return $html } sub GetReferersBar { my ($thisHash, $anotherHash) = @_; my $bartext = ""; $bartext .= printcells($thisHash); $bartext .= printcells($anotherHash); $bartext .= "
" ; return $bartext; }