I want to iterate through records returned from a MySQL database using Perl, but only ten records at a time. The reason is that the server component can only handle 10 items per request.
For example:
If the query returned 35 records then I have to send the data in 4 requests:
Request # # of Records -------- -------- 1 10 2 10 3 10 4 5
What is the best way to accomplish the task?