in reply to all binary combinations
$ perl -le' my $length = 3; for ( my $i; ; ++$i ) { last if $i & 1 << $length; printf "%0*b\n", $length, $i; } ' 000 001 010 011 100 101 110 111
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: all binary combinations
by perlrocks (Acolyte) on Sep 05, 2009 at 15:26 UTC | |
|
Re^2: all binary combinations
by perlrocks (Acolyte) on Sep 04, 2009 at 15:46 UTC | |
by perlrocks (Acolyte) on Sep 04, 2009 at 15:55 UTC |