in reply to Modification of a read-only value attempted

In the first case, $subs[0] is a variable you can freely edit.
In the second case, '_iata_city' is a constant, which you can't modify.

Nothing to do with underscores, just constants vs variables as the error message says.
  • Comment on Re: Modification of a read-only value attempted