Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Generalizing Code: Generating Unique Permutations (iterator)

by tye (Sage)
on Oct 07, 2003 at 21:42 UTC ( [id://297402]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
        printf "( %s )\n", join ", ", map sprintf("(%s,%s)",@$_), @group;
        ## push @data, \@group;
    }
    
  2. or download this
     > perl pairs.pl e 2
    15 pairings:
    ...
    ( (b,c), (d,e) )
    ( (b,d), (c,e) )
    ( (b,e), (c,d) )
    
  3. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
        printf "( %s )\n", join ", ", map sprintf("(%s,%s)",@$_), @group;
        ## push @data, \@group;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-03-19 09:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found