Help for this page

Select Code to Download


  1. or download this
    use strict;
    use Algorithm::Loops qw( NestedLoops );
    ...
        @bits[@ones]= (1) x $ones;
        print join '', @bits, $/;
    }
    
  2. or download this
        my $bits= 8;
        for my $o0 ( 0 .. $bits-1 ) {
    ...
                }
            }
        }
    
  3. or download this
    use strict;
    use Algorithm::Loops qw( NestedLoops );
    ...
        @bits[@ones]= (1) x $ones;
        print join '', @bits, $/;
    }