Next: , Previous: Reference to Elements, Up: Arrays



7.3 Assigning Array Elements

Array elements can be assigned values just like awk variables:

     array[subscript] = value

array is the name of an array. The expression subscript is the index of the element of the array that is assigned a value. The expression value is the value to assign to that element of the array.