Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by BrowserUk (Pope)
on Nov 02, 2012 at 20:04 UTC ( #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
Node Status?
node history
Node Type: note [id://1002044]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (15)
As of 2014-10-21 18:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (106 votes), past polls