Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 meditating upon the Monastery: (8)
As of 2014-12-22 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (115 votes), past polls