Help for this page

Select Code to Download


  1. or download this
    sub set_bit_offsets {
        my @bitmap = split //, unpack('b*', @_);
    ...
        }
        return @offset;
    }
    
  2. or download this
    sub set_bit_offsets {
        my @bitmap = split //, unpack('b*', @_);
        return grep {$bitmap[$_]} 0..$#bitmap;
    }