in reply to Re: Using foreach to process a hash
in thread Using foreach to process a hash
Note: You can't safely use last, return or die to exist a while each loop. Not running each to the end makes each unusuable on that hash at a latter point. While less memory efficient, the for alternative avoids this problem.
|
|---|