Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: what on earth is going on?

by inman (Curate)
on Nov 10, 2005 at 17:45 UTC ( [id://507483]=note: print w/replies, xml ) Need Help??


in reply to Re: what on earth is going on?
in thread what on earth is going on?

This code uses Math::Combinatorics to work out the combinations. It is easier to work out the combinations that you want to keep rather than those that you want to get rid of.

use Math::Combinatorics; my @cols = (0..12); my @combin; my @data = ('A'..'Z'); my $combinations = Math::Combinatorics->new(count => 10, data => [@col +s]); while (@combin = $combinations->next_combination()) { print join("\t", @data[@combin]), "\n"; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-26 05:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found