Sorry...posting wrong code. These lines should be flipped:

>     result = map do |*a|
>       nproc = 0

should be

     nproc = 0
     result = map do |*a|

Sorry 'bout that...

/Fredrik