Languages like C, BASIC, FORTRAN and Java support arrays in which the index value is an integer. Tcl, like most scripting languages (Perl, Python, PHP, etc...) supports associative arrays (also known as "hash tables") in which the index value is a string.
The syntax for an associative array is to put the index within parentheses: set name(first) "Mary" set name(last) "Poppins" puts "Full name: $name(first) $name(last)" There are several array commands aside from simply accessing and creating arr...
원문 링크 : Associative Arrays.