Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Derangements iterator (handles duplicate values)

by Roy Johnson (Monsignor)
on Jan 03, 2006 at 19:34 UTC ( #520703=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    a b b a
    
  2. or download this
    b a a b
    
  3. or download this
    use strict;
    use warnings;
    ...
    
    #print "\nShould be:\n";
    #print "@$_\n" for sort {"@$a" cmp "@$b"} derange(@ARGV);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://520703]
help
Chatterbox?
[Corion]: Hi thezip ;)
[thezip]: Howdy Corion

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2017-04-27 15:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (509 votes). Check out past polls.