Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Different result for 'foreach' vs 'while shift' arrayref

by rnewsham (Curate)
on Apr 18, 2014 at 09:23 UTC ( #1082736=note: print w/replies, xml ) Need Help??


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

  • Comment on Re: Different result for 'foreach' vs 'while shift' arrayref

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1082736]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (1)
As of 2020-12-06 01:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (65 votes). Check out past polls.

    Notices?