Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: generating permutations

by toolic (Bishop)
on Mar 29, 2017 at 17:33 UTC ( #1186405=note: print w/replies, xml ) Need Help??


in reply to generating permutations

Start smaller. Here is one basic way to create and use the swap sub:
use warnings; use strict; my @swaps = swap(2, 3); print "@swaps\n"; sub swap { my $k = shift; # 1st arg my $l = shift; # 2nd arg return $l, $k; # List of 2 args swapped } __END__ Prints: 3 2

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2022-01-19 16:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (55 votes). Check out past polls.

    Notices?