";
print "";
print "Raw Date\n";
print "";
@datetable=();
@kountdatetable=();
foreach (keys %date) {
$datekount=$date{$_};
#while (length($datekount) < 10 ) {
# $datekount="0".$datekount;
#}
$datekount=&add_leading_zeros($datekount,10);
push(@datetable, $_.":".$date{$_});
push(@kountdatetable, $datekount.":".$_);
print "\n";
print "$date{$_} | \n";
print "$_ | ";
print " \n";
}
print " ";
print " | ";
@datetable2=sort(@datetable);
$i=0;
print "";
print "Sort Date\n";
print "";
foreach (keys %date) {
#foreach(sort @table2) {
print "\n";
#print "$date{$_} | \n";
#print "$_ | ";
#print "$datetable2[$i] | ";
($k,$j)=split(':', $datetable2[$i]);
#print "$j $k | ";
print "$j | ";
print "$k | ";
$i++;
print " \n";
}
print " ";
print " | ";
@datetable3=sort(@kountdatetable);
$i=0;
print "";
print "Count Date\n";
print "";
foreach (keys %date) {
#foreach(sort @table2) {
print "\n";
#print "$date{$_} | \n";
#print "$_ | ";
#print "$datetable3[$i] | ";
($j,$k)=split(':', $datetable3[$i]);
#print "$j $k | ";
#while ($j =~ /^0/) {
# $j=s/^0//;
#}
$j=$j*1;
print "$j | ";
print "$k | ";
$i++;
print " \n";
}
print " ";
print " | ";
print "
";
print "