I say to you: "Have you ever looked at the async call in threads?"

async(&;@) is just an alias to:

threads->new( sub {...} );
What we are doing here is a thread that can be used externally, I can call things from outside inside this thread. Now a normal thread in Perl is just a sub that is called, and what happens after this we don't know or control.

In a normal Perl thread, after create it, we can't say externally to load some modules or to call functions inside it, and this is the point here!

Graciliano M. P.
"Creativity is the expression of liberty".


In reply to Re^2: Isolating dynamically loaded modules with Thread::Isolate. by gmpassos
in thread Isolating dynamically loaded modules with Thread::Isolate. by gmpassos

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