Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Generalizing Code: Generating Unique Permutations (iterator)

by tye (Cardinal)
on Oct 07, 2003 at 21:42 UTC ( #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
Node Status?
node history
Node Type: note [id://297402]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2014-09-21 07:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (167 votes), past polls