Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: How can I run a piece of code asyncronously in Perl?

by BrowserUk (Patriarch)
on Nov 02, 2012 at 20:04 UTC ( [id://1002044]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    C:\test>perl -Mthreads -E"async{ qx{perl -E\"sleep 5; die q[Now I'm do
    +ne];\"} }->detach; select'','','',0.1; die 'I\'m done'"
    I'm done at -e line 1.
    
    C:\test>Now I'm done at -e line 1.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1002044]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-26 05:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found