Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Perl fork childs with variables

by ikegami (Pope)
on Mar 07, 2013 at 01:04 UTC ( #1022128=note: print w/replies, xml ) Need Help??


in reply to Perl fork childs with variables

use forks; my $fork1 = async { return subroutine($param1, $param2); }; my $fork2 = async { return subroutine($param3, $param4); }; my $return1 = $fork1->join(); my $return2 = $fork2->join();

But there's no need for two forks.

use forks; my $fork1 = async { return subroutine($param1, $param2); }; my $return2 = subroutine($param3, $param4); my $return1 = $fork1->join();

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1022128]
help
Chatterbox?
Discipulus what? Can I approve one of post on my own? weird..
Discipulus my posts..
[choroba]: It's been reported before
[Discipulus]: ok no big deal anyway..
[Discipulus]: mmh choroba.. my post is not for you, if you do not want your golfing game somehow spoilered for one of the problems. Adviced! ;=)
[Discipulus]: no that i aim to victory anyway..

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2017-10-22 19:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (275 votes). Check out past polls.

    Notices?