in reply to Re^2: RFC - FAQ for Modification of a read-only value attempted
in thread RFC - FAQ for Modification of a read-only value attempted
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 "foreach" loop index variable is an implicit alias for each item in the list that you're looping over.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: RFC - FAQ for Modification of a read-only value attempted
by imp (Priest) on Aug 29, 2006 at 14:16 UTC |