b4swine has asked for the wisdom of the Perl Monks concerning the following question:
produces the outputuse String::Combination qw(combination); my @comb = combination('12345678',8); print "@comb[6..12]\n@comb[62..68]\n";
As far as I see it, there should not be any repetitions. Am I misunderstanding something, or is this a bug?23456781 32456781 34256781 34526781 34562781 34567281 34567821 23456781 32456781 34256781 34526781 34562781 34567281 34567821
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: String::Combination Package Bug?
by amarquis (Curate) on Jan 02, 2008 at 16:46 UTC | |
|
Re: String::Combination Package Bug?
by gamache (Friar) on Jan 02, 2008 at 16:38 UTC | |
by ysth (Canon) on Jan 03, 2008 at 08:03 UTC | |
|
Re: String::Combination Package Bug?
by shmem (Chancellor) on Jan 02, 2008 at 17:21 UTC | |
|
Re: String::Combination Package Bug?
by Khen1950fx (Canon) on Jan 02, 2008 at 23:35 UTC | |
|
Re: String::Combination Package Bug?
by Anonymous Monk on Jan 03, 2008 at 08:27 UTC |