Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
#!/usr/bin/perl -w # # This was created to print out a list of all TLDs possable which are # 3, 4, 5 and 6 characters long. # # This program will run for quite some time if you let it. I recommend # hitting ^C after a short time. Espicially if you want to have it wri +te to a file. # # I DO NOT recommend having it write to a file do the the huge dataset + it creates. # If you do have it write to a file, the fault is in no way mine. The +author will not # be held responsible for your actions. # # Letters and Numerals @chars = qw(a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9); # Letters, Numerals and a null. If I don't have this, the program will + only return # TLDs with 6 characters. This way, it return TLDs with 3-6 characters +. @charsnull = (@chars,""); foreach $char (@chars){ $tld = $char; foreach $char (@chars){ $tld2 = $tld . $char; # to see why I did it this way, run +the program # so everything is appended to $tld and watch +the output. foreach $char (@chars){ $tld3 = $tld2 . $char; foreach $char (@charsnull){ $tld4 = $tld3 . $char; foreach $char (@charsnull){ $tld5 = $tld4 . $char; foreach $char (@charsnull){ $tld6 = $tld5 . $char; print "$tld6\n"; # if you try the above co +mment, be sure #to change all the $tld(insert number here) va +rs, to just, $tld. } } } } } }

In reply to TLD generator by j.a.p.h.

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-03-29 12:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found