|
|
Question : expect, using associative arrays
|
|
Can somebody give me example of using associative arrays within expect script? I need to create a map from string to string, then access/get value by key.
|
Answer : expect, using associative arrays
|
|
array set hash [list a 2 b 3 c 4] array names hash puts $hash(b)
# expect is tcl
|
|
|
|
|