Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 musing on the Monastery: (7)
As of 2015-08-02 23:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (16 votes), past polls