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

Is it possible to generate all possible combinations of 2-letter and 3-letter words in perl?

by supriyoch_2008 (Monk)
on Sep 02, 2012 at 14:11 UTC ( [id://991276]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use warnings;
    use strict;
    ...
    print"\n All possible combinations of 2-letter words: ???$combi_2l\n";
    print"\n All possible combinations of 3-letter words: ???$combi_3l\n";
    exit;
    
  2. or download this
    All possible combinations of 2-letter words (16):
    AA
    AT
    ...
    CT
    CG
    CC
    
  3. or download this
    All possible combinations of 3-letter words:
    AAA
    ...
    ...
    ...
    CCC
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-25 13:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found