Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Pathologically Eclectic Rubbish Lister
 
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 drinking their drinks and smoking their pipes about the Monastery: (13)
As of 2014-04-17 19:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (453 votes), past polls