in reply to Re: Hashes: Deleting elements while iterating
in thread Hashes: Deleting elements while iterating
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Hashes: Deleting elements while iterating
by gjb (Vicar) on Sep 02, 2003 at 21:03 UTC | |
by knexus (Hermit) on Sep 02, 2003 at 21:20 UTC |