In addition to what the A.M. said, it's maybe worth pointing out that $sub is not a copy of, but rather an alias to the elements being iterated over — which explains why the modification is being attempted on the constant "_iata_city" itself.
In reply to Re: Modification of a read-only value attempted
by almut
in thread Modification of a read-only value attempted
by ropey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |