in reply to Variable scoping, foreach loop, alias
Your $bla is not an ordinary variable in the foreach loop. foreach my $bla (@arry) {} makes $bla an alias to each element of @arry in turn. The increment acts on the original array elements.
After Compline,
Zaxo
|
|---|