"aliasing the loop variable" means that the $_ (in your case) will be aliased to (i.e. not be a copy of) the individual elements of the list. So, modifying $_ will modify the contents of the array. This has nothing to do with pushing stuff onto the array @headers, though...
In reply to Re: Mutable foreach list?
by almut
in thread Mutable foreach list?
by zigdon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |