| Re: every combination of Y/N in 5 positions |
|
 |
|
 |
|
 |
|
 |
Group: comp.lang.perl.misc · Group Profile
Author: smallpondsmallpond Date: Mar 31, 2008 14:06
On Mar 31, 4:57 pm, joemacbusin...@ yahoo.com 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?
|