Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: (Golf) Per Mutations

by wardk (Deacon)
on May 04, 2001 at 04:30 UTC ( #77850=note: print w/ replies, xml ) Need Help??


in reply to (Golf) Per Mutations

Apologies to Abigail... http://www.foad.org/~abigail/Perl/Combinatorial/Permutations.pm

#!/bin/perl use Combinatorial::Permutations; my @t = p(1,2,3); foreach $p (@t) { print @$p, "\n"; } sub p { return Permutations::permutate(@_); } ------ xdev$ ./perm.pl 123 213 231 132 312 321


Comment on Re: (Golf) Per Mutations
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://77850]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2015-07-03 03:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (48 votes), past polls