in reply to
push in for loop
Don't change the array over which you are iterating with for. It's a known limitation.
Comment on
Re: push in for loop
In Section
Seekers of Perl Wisdom