http://qs321.pair.com?node_id=1082736


in reply to Different result for 'foreach' vs 'while shift' arrayref

Hi Geert,

Without seeing the full code and data it is hard to say what is happening. I would recommend trying to find which rows are missing from your while iterations. If they are rows that contain a specific value, they are the first rows or last rows that may give you the clue you need. I would also check that you do not have two loops over $rowcache which use shift, as an earlier shift could be removing the data.

Richard