in reply to Re: Controlling Thread Numbers
in thread Controlling Thread Numbers
Hey NetWallah,
Thanks for the snippet!
I'm having a hard time following though... on this line:
our $KIDS = $count > 20? 10 : int ($count / 4) || 1;
Won't $KIDS always be assigned the value 1? Unless $count has already been assigned a value elsewhere... and I'm assuming that the keys in %ServerInfo are IP addresses that get passed to another sub_routine called Ping_it()?
Sorry if I'm being a little dense here. Just trying to get what goes where and there seem to be a few pieces of the puzzle still missing.
Thanks again!
Thanks for the snippet!
I'm having a hard time following though... on this line:
our $KIDS = $count > 20? 10 : int ($count / 4) || 1;
Won't $KIDS always be assigned the value 1? Unless $count has already been assigned a value elsewhere... and I'm assuming that the keys in %ServerInfo are IP addresses that get passed to another sub_routine called Ping_it()?
Sorry if I'm being a little dense here. Just trying to get what goes where and there seem to be a few pieces of the puzzle still missing.
Thanks again!
In Section
Seekers of Perl Wisdom