The problem is that e() always returns a different hash referenceAh, that's it! I understand.
Please don't use &e to call a sub, use e() instead - you might get surprising results otherwise.Agreed. I had first %{ e }, but this was (of course) interpreted as hash variable %e, so I replaced it without much thinking by %{&e}. You are absolutely right that %{e()} would have been the better choice.
In reply to Re^2: This "each" goes to endless loop each time...
by rovf
in thread This "each" goes to endless loop each time...
by rovf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |