There's more than one way to do things | |
PerlMonks |
Re: foreach loopsby Bilbo (Pilgrim) |
on May 27, 2002 at 13:51 UTC ( [id://169578]=note: print w/replies, xml ) | Need Help?? |
I think that it would be useful to point out that the loop variable is
aliased to each element of the array in turn. It is not a copy of
the element, so modifying the loop variable will modify
the original array. One simple application of this is the initialisation
of an array.
In Section
Tutorials
|
|