Your descriptions are so jumbled and lacking in detail it is impossible to reach any conclusions based upon them.

Your original post suggested that do "didn't work" when used in a thread. This is easily demonstrated to be untrue:

c:\test>copy con test.pl print 'Hello from test.pl'; ^Z 1 file(s) copied. c:\test>perl -Mthreads -E"async{ do 'test.pl' }->join" Hello from test.pl c:\test>

Now you say that is now working for you but "something else isn't working". That isn't much to go on!

If your program is so large and has so many dependencies that you cannot post it here, then you need to produce a small, self contained example (like the one I just posted above), that demonstrates the problem you are having. Because your wordy descriptions mean absolutely nothing to me.

The chances are, if you go through the process of writing a stand alone demo, you will probably realise your error yourself, but if you don't, the post it here and we'll be able to help you.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

In reply to Re^5: Perl/Tk Multithreading by BrowserUk
in thread Perl/Tk Multithreading by mahis_431

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.