Help for this page

Select Code to Download


  1. or download this
     # for each character, count the on bits in that character
    my %bits_in;
    foreach my $char ( map { chr } 0 .. 255 ) {
    ...
        }
    }
    
  2. or download this
    # for each character, count the on bits in that character
    my %bits_in;
    ...
            $bits_in{ $char } = $sum[ $char ];
    }