Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Perlplexation - foreach shoulda Knownby tinita (Parson) |
on Apr 14, 2012 at 09:46 UTC ( [id://965054]=note: print w/replies, xml ) | Need Help?? |
I guess I just assumed it didn't because when you declare the variable in a foreach loop, you don't think of it as a reference (because it really isn't one, but it sorta acts like one in that it represents the actual element in the list.)It is called an alias.
In Section
Meditations
|
|