Hi, the following seems to work here:
HTH as a starting point.perl -e '$n=3; print substr( unpack("B*", pack("N",$_)), -$n), "\n" fo +r (0..2**$n-1)'
In reply to Re: all binary combinations
by Perlbotics
in thread all binary combinations
by perlrocks
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |