in reply to foreach loop question
For 'one by one' iteration over a hash, have a look at each, but you cannot use that to add elements to the hash on the fly while iterating over it either (well, you can, but it's your foot :) ).
You'll have to iterate over the hash keys again if you want to get at the new values, I think.
CU
Robartes-
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: foreach loop question
by fletcher_the_dog (Friar) on Apr 16, 2003 at 21:38 UTC | |
by Mr. Muskrat (Canon) on Apr 16, 2003 at 22:06 UTC |