|
From: | Hermann Peifer |
Subject: | Gawk manual: 7.2 Referring to an Array Element |
Date: | Thu, 13 Aug 2009 11:57:04 +0200 |
User-agent: | Thunderbird 2.0.0.22 (Windows/20090605) |
> ... array[index] ... > ... index in array .. http://www.gnu.org/software/gawk/manual/gawk.html#Reference-to-ElementsSome newcomers (like me some time ago) could try to literally use "for (index in array)...", which will throw a fatal error,as index is a reserved word for a built-in string function.
It would perhaps be better to consistently use "subscript" in the documentation, as in section 7.4
array[subscript] = value
Hermann
[Prev in Thread] | Current Thread | [Next in Thread] |