What I did was put 3 different ways of iterating over the hash when deleting. To test the different ones I would just COMMENT OUT the others and do a quick run.
If I USE the first one I get errors. If I use the last 2 (the foreach w/ sort and the while) they work and no errors.
In reply to Re: Re: Hashes: Deleting elements while iterating
by knexus
in thread Hashes: Deleting elements while iterating
by knexus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |