Skip to content

Instantly share code, notes, and snippets.

@fakessh
Created November 7, 2012 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fakessh/4032263 to your computer and use it in GitHub Desktop.
Save fakessh/4032263 to your computer and use it in GitHub Desktop.
generates numerically sorted permutation
#!/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