Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 meditating upon the Monastery: (7)
As of 2014-11-27 19:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (187 votes), past polls