Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-08-22 00:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (145 votes), past polls