Andre Schulze schrieb:
[...] Ist das ein Bug? Sollte man das an Larry Wall posten? $ perl -v This is perl, version 5.005_03 built for i386-linux
Nein; "man perlsyn":
| [...] | Foreach Loops | [...] If | VAR is omitted, `$_' is set to each value. If any element | of LIST is an lvalue, you can modify it by modifying VAR | inside the loop. That's because the `foreach' loop index | variable is an implicit alias for each item in the list that | you're looping over. | [...]
Tim