Make your life easy, don't fork...

on unix systems, it's ok... on NT it's horrible... it's unreliable, blocking,
resource hogging <insert expletives here>
anyway, taht's my 2 bits.

enough flaming, now for an answer to your question.

if you want to fire off multiple processes, i seriously advice you to look into
POE (perl object environment) which is basicly a multi threader for perl
now, this will take a little bit to wrap your head around, and i'll be more then
happy to answer any questions that might come up.

take a look at the POE article, which you can read here:
http://www.perl.com/pub/2001/01/poe.html

and of course, all contents, faqs, docs etc are available from poe.perl.org

Hope this helps,

Jos Boumans

"Ronald J. Yacketta" wrote:

> Folks,
>
> Can someone shed some light on using fork to spawn 2+ simultaneous process?
> I am reading in allot of logfiles and splitting them into 3 separate arrays.
> Currently I am forking and doing a exec("egrep", "-c", "Err", @array1);
> (yes, ugly but it is just the beginning!) this works well
> if I were to exec one at a time, I would like to fork and send all three
> execs rolling at one. any clues?
>
> Regards,
> Ron

Reply via email to