Answered here. It talks about a sub call and @_, but the same applies to a foreach loop and the loop var ($_).
In reply to Re: Modifying $_ in foreach (%hash)
by ikegami
in thread Modifying $_ in foreach (%hash)
by dse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |