![]() |
|
No such thing as a small change | |
PerlMonks |
Fork limited childs and passing parametersby chanakya (Friar) |
on Nov 24, 2006 at 12:21 UTC ( #585853=perlquestion: print w/replies, xml ) | Need Help?? |
chanakya has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks, I'm trying to write a program which will calls a subroutine with a given sourceid. There can be around 200 sourceids which are nothing but directory names. The script should initially spawn 4 childs and call the subroutine with a given sourceid (the sourceid cannot be repeated). Script should create new childs as and when a child finishes the job and continue until all the 200 sourceids are processed. Below is the code I've tried. My only question is Is there anyway of doing the same thing in a simple manner and the most important thing how do I pass the sourceids(unique) to the subroutine. Thanks in advance
Back to
Seekers of Perl Wisdom
|
|