http://www.perlmonks.org?node_id=369516


in reply to Re^5: To initialise or not to initialise?
in thread To initialise or not to initialise?

When you loop over a list, the local variable is aliased to each member of the list. If you modify the variable, then you modify the original member of the list as well.