in reply to Re^3: Unique Combos with Math::Combinatorics
in thread Unique Combos with Math::Combinatorics

Simply because although I understood the idea of what you were doing, I did not understand how to use the code. I typed it out so i could visualize what was going on,each assignment etc... After reviewing your code and comparing I do see now how it works, but I never would see that on my own to start. Thanks for the help.
  • Comment on Re^4: Unique Combos with Math::Combinatorics

Replies are listed 'Best First'.
Re^5: Unique Combos with Math::Combinatorics
by ikegami (Patriarch) on Mar 02, 2008 at 06:21 UTC

    I did not understand how to use the code.

    Change
    for each combination @c:
    to
    while ( my @c = $comboObj->next_combination){

    and change
    # emit combination here
    to
    print join(', ', @c) . "\n";

    After reviewing your code and comparing I do see now how it works,

    It was neither my code nor my post.