Greeting fellow monks, In advanced, please forgive me if this message sounds retarted. I'm a Perl newbie, and came accross this great Perl riddle as I was constructng an AIM bot using the Net::AIM package. For those of you who know how to use Net::AIM, when I get the login information, and call the start() method, no other code excecutes. I did a little research and found out that calling start() initiates an infinite loop that checks the socket. One of the things I wanted to do with this bot is to log it onto multiple Screen Names. Since no other code will excecute after start() is called, I thought AH HA! I'M SMART! and tried to put start() in a seperate thread. I then promptly yelled DAMNIT! (and have since prayed to the Perl Gods to forgive me for such a savage act) when I saw the error in my MS DOS prompt window: "A thread exited before 2 other threads." I thought to myself "what the hell?"(and then prayed for forgiveness yet again).....I did some more research on threads in Perl, and came up with no other information than this: this is a really friggin' annoying error. Maybe the perl gods are punnishing me for my heathen ways. Can any of you monks enlighten me as to what i'm doing wrong? much thanks! ~Brian

In reply to Threads and Net::AIM by webmasterbstempin

Title:
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, details, 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, summary, 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.