Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: list of four digit lock combinations without repeated digits

by johngg (Canon)
on Jun 22, 2018 at 16:22 UTC ( [id://1217223]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    johngg@abouriou ~/perl/Monks $ perl -Mstrict -Mwarnings -E '
    for my $w ( 0 .. 6 )
    ...
        }
    }' | wc -l
    210
    
  2. or download this
    johngg@abouriou ~/perl/Monks $ perl -Mstrict -Mwarnings -E '
    say for
    ...
           } $x .. 7
        } 0 .. 6;' | wc -l
    210
    
  3. or download this
    johngg@abouriou ~/perl/Monks $ perl -Mstrict -Mwarnings -E '
    say for
    ...
           } ( $w + 1 ) .. 7
       } 0 .. 6;' | wc -l
    210
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-20 02:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found