Re: every combination of Y/N in 5 positions



On Mar 31, 4:57 pm, joemacbusin...@xxxxxxxxx wrote:
Hi All,

This has probably already been written but I did not see it on CPAN.
Is there a code snippent that can print every possible combination
of Y/N's in a 5 position array or string?

For example: Y Y Y Y Y becomes
N Y Y Y Y
Y N Y Y Y....
Y Y N N Y etc.


Who gets the credit for doing your homework?

.



Relevant Pages

  • Re: every combination of Y/N in 5 positions
    ... smallpond wrote: ... This has probably already been written but I did not see it on CPAN. ... Is there a code snippent that can print every possible combination ... Gunnar Hjalmarsson ...
    (comp.lang.perl.misc)
  • Re: every combination of Y/N in 5 positions
    ... This has probably already been written but I did not see it on CPAN. ... Is there a code snippent that can print every possible combination ... which would loop trough the bits and produce a string of Ys and Ns ...
    (comp.lang.perl.misc)