Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Creating tuples based on sets (nested loops)

by tye (Sage)
on Apr 16, 2003 at 17:35 UTC ( [id://250979]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub tuples {
        my( $count, @set )= @_;
    ...
    for my $tuple (  @$tuples  ) {
        print "@$tuple\n";
    }
    
  2. or download this
    sub tupleMaker {
        my( $count, @set )= @_;
    ...
    while(  my @tuple= $gen->()  ) {
        print "@tuple\n";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-03-29 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found