Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Comment on

( #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.

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

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others contemplating the Monastery: (3)
    As of 2018-05-25 23:39 GMT
    Find Nodes?
      Voting Booth?