Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Uninitialized value in numeric eq (==) after 65 iteration of a loop using fork?!?by doowah2004 (Monk) |
on Sep 13, 2004 at 14:18 UTC ( [id://390562]=perlquestion: print w/replies, xml ) | Need Help?? |
doowah2004 has asked for the wisdom of the Perl Monks concerning the following question:
Hi All, I have been farting and fooling around with fork, and I was trying to see the time difference in having child processes create more child processes to complete a task vs the parent creating all the children. so here is what I did: This should create 99 lines in the output file and it does. I then change the code to:
This should also create 99 lines in the output file, but consistently after 65 lines I get the following: Use of uninitialized value in numeric eq (==) at testfork1.pl line 16. I can not see why this is happening. Does this happen to anyone else running the code? If can anyone enlighten me on why? Thank you all in advance, Cameron
Back to
Seekers of Perl Wisdom
|
|