in reply to Re: Processing a set of resources with a pool of forked children
in thread Processing a set of resources with a pool of forked children

foreach my $rh (sort { fileno $a <=> fileno $b } $rset->can_read) {

Why sort the ready handles by fileno?


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^2: Processing a set of resources with a pool of forked children
  • Download Code

Replies are listed 'Best First'.
Re^3: Processing a set of resources with a pool of forked children
by shmem (Chancellor) on Feb 01, 2014 at 22:17 UTC

    Good catch, thank you. Well, er... first come, first serve. Children always have an eye on each others privileges. ;-)

    Seriously, it's an artifact from cut&paste. In the code I took that from, processing had preferably to be in the same order as the spawned children. Not a technical requirement.

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'