in reply to Mutable foreach list?
"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...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Mutable foreach list?
by zigdon (Deacon) on Jan 11, 2007 at 15:38 UTC | |
by ikegami (Patriarch) on Jan 11, 2007 at 18:16 UTC | |
by almut (Canon) on Jan 11, 2007 at 15:52 UTC |