Thread Referenz zuweisen (13 answers)
Opened by bianca at 2012-12-22 12:57

GwenDragon
 2012-12-22 16:52
#164367 #164367
User since
2005-01-17
14746 Artikel
Admin1
[Homepage]
user image
Ja, daran musste denken.
Quote
If any element of LIST is an lvalue, you can modify it by modifying VAR inside the loop. (...)
In other words, the foreach loop index variable is an implicit alias for each item in the list that you're looping over.

http://perldoc.perl.org/perlsyn.html#Foreach-Loops

Manchmal ist mir da etwas zu viel Perl-Magie.
Last edited: 2012-12-22 16:53:47 +0100 (CET)

View full thread Referenz zuweisen