Created
November 7, 2012 15:32
-
-
Save fakessh/4032263 to your computer and use it in GitHub Desktop.
generates numerically sorted permutation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use List::Permutor; | |
my $permutor = List::Permutor->new( 0, 1, 2); | |
while ( my @permutation = $permutor->next() ) { | |
print "@permutation\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment