Help for this page

Select Code to Download


  1. or download this
    sub bits { glob join "", map "{0,1}", 1..$_[0] }
    say for bits(10);
    ...
    1111111101
    1111111110
    1111111111
    
  2. or download this
    sub bits { glob "{0,1}" x $_[0] }