http://www.perlmonks.org?node_id=1012319


in reply to Re^2: While Loops
in thread While Loops

  1. You should not use $a as your index variable, or really ever as a generic variable. $a and $b have special meaning for sort.
  2. I'm unclear on how your strategy splits the array into chunks of 100 records. There are certainly a myriad of ways to get this done, but it's not obvious to me how this is one of them.

#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.