I think that format string should've been "%0${length}b\n"
In reply to Re^3: all binary combinations by almut in thread all binary combinations by perlrocks