Help for this page

Select Code to Download


  1. or download this
    my %from_to_bytes;
    my %col_headings;
    ...
        $from_to_bytes{"~~TOTAL"}{$to} += $bytes;
        $col_headings{$to} = undef;
    }
    
  2. or download this
    print join("\t", '', sort keys %col_headings, 'Total'),"\n";
    for my $from ( sort keys %from_to_bytes ) {
        print (( $from eq '~~TOTAL' ) ? 'Total' : $from );
        print "\t$from_to_bytes{$from}{$_}" for (sort keys %{$from_to_byte
    +s{$from}});
    }