Name

Math::Permute::List - Generate all permutations of a list.

Synopsis

use Math::Permute::List;

permute {say "@_"} 1..3;

1 2 3
1 3 2
2 1 3
3 1 2
2 3 1
3 2 1

Description

Math::Permute::List generates all the permutations of a list using the standard Perl metaphor. Its easy to use and fast. Its written in 100% Pure Perl.

Please note that the order in which the permutations are generated is not guaranteed, so please do not rely on it.

Export

The permute() function is exported by default.

Installation

Standard Module::Build process for building ans installing modules:

perl Build.PL
./Build
./Build test
./Build install

Or, if you're on a platform (like DOS or Windows) that doesn't require the "./" notation, you can do this:

perl Build.PL
Build
Build test
Build install

Author

PhilipRBrenan@handybackup.com

See Also

Algorithm::Permute Algorithm::FastPermute

Copyright

Copyright (c) 2009 Philip R Brenan This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.