Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 romping around the Monastery: (11)
As of 2014-10-02 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (56 votes), past polls