To initialize an array, use a "set of arrays". If you just want to create an internal array object without giving it any values, you can give it an empty list as an argument. For example:
array set foo {}
If you want to give it values, you can give it a correctly quoted list of key / value pairs:
array set foo { one {this is element 1} two {this is element 2} }
Bryan oakley
source share