Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: How can I run a piece of code asynchronously in Perl?

by Lotus1 (Curate)
on Nov 02, 2012 at 19:09 UTC ( #1002029=note: print w/replies, xml ) Need Help??

in reply to How can I run a piece of code asyncronously in Perl?

The word asynchronous is usually used for communication systems that are not synchronized by a clock signal. What you are asking for would be called parallel processing. If all you really want is the text to appear immediately how about this?

print "DONE\n"; ` "arg1" "arg2" "arg3"`;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1002029]
[choroba]: fortunately, it wasn't that hard to replace the method and fix a few remaining failures due to the changes we did to the codebase over the years
[marinersk]: choroba Sounds like a process improvement opportunity; tests may not all need to be run, but they should all be compiled with perl -c before check-in/promotion happens.
[choroba]: so, now I have the test, so I can start making changes in the code. Back to the original ticket, yay!
[marinersk]: I definitely love it when my $current_taask=& taskPop(); if ($current_task eq $original_task) { } is true.
[marinersk]: s/taask/task/g;

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (14)
As of 2017-05-25 15:18 GMT
Find Nodes?
    Voting Booth?