Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: RE: Permutations and combinations

by AltBlue (Chaplain)
on Apr 19, 2002 at 15:21 UTC ( #160580=note: print w/ replies, xml ) Need Help??


in reply to Re: RE: Permutations and combinations
in thread Permutations and combinations

lol, you bother to look upon this old piece of code :))

heh, of course that your snippet is good, but a swap routine could be written even simpler:

sub swap { reverse @_ }
... heh, it's not the case for that code thou, as the array is a global one :) cheers.

--
AltBlue.


Comment on Re: Re: RE: Permutations and combinations
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2014-11-01 13:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    If a safe, affordable anti-ageing treatment that extended life indefinitely were to become available, would you take it?



    Results (4 votes), past polls