"be consistent" | |
PerlMonks |
Re^3: Round robin processingby jcb (Parson) |
on Sep 09, 2019 at 17:26 UTC ( [id://11105897]=note: print w/replies, xml ) | Need Help?? |
The remainder being 0 is not really a problem and is needed for the solutions presented thus far, because all of them are using arrays to store the bins instead of using a hash. Arrays in Perl are indexed using numbers starting at 0, so it "just fits" and also mean that the bins are always in a known order instead of the random order that your initial code produces.
In Section
Seekers of Perl Wisdom
|
|