Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by supriyoch_2008 (Scribe)
on Sep 02, 2012 at 14:11 UTC ( #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
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? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2014-09-20 03:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (152 votes), past polls