Commit 6efc56d41a for perl
commit 6efc56d41a584c8c1ffd42739bac613ab8c13ddd
Author: Lukas Mai <lukasmai.403@gmail.com>
Date: Fri Sep 25 08:51:48 2026 +0200
perlsyn: foreach doesn't use an "index" variable
Follow-up to 4633a7c4bad0.
diff --git a/pod/perlsyn.pod b/pod/perlsyn.pod
index 9a60cb48d9..11f7c42eec 100644
--- a/pod/perlsyn.pod
+++ b/pod/perlsyn.pod
@@ -538,7 +538,7 @@ X<$_>
If any element of LIST is an lvalue, you can modify it by modifying
VAR inside the loop. Conversely, if any element of LIST is NOT an
lvalue, any attempt to modify that element will fail. In other words,
-the C<foreach> loop index variable is an implicit alias for each item
+the C<foreach> loop variable is an implicit alias for each item
in the list that you're looping over.
X<alias>