interested findings in keyed list

From: Peter Wang (wkwang_at_cisco.com)
Date: 05/28/04


Date: Fri, 28 May 2004 17:08:06 -0400

Hi all,

I don't know if it's exactly keyed list's feature. Basically I want to take
a string with two words joined by .
to be a key. Like in this example, I desired to set a keyed list named
"result" which has two keys "size.max"
and "size.min". And their value are "100" and "10" respectively.

Surpised to me, actually it works out to be another "result", the keyed list
"result" has only one key "size".
and its value holds another keyed list with two keys "max","min" with values
"100","10".

Could someone confirm that it is function of keyed list? And it's supposed
to perform as below.

Thanks
Peter

> expect -v
expect version 5.39.0

expect1.1> keylset result size.max 100

expect1.2> keylset result size.min 10

expect1.3> keylget result
size

expect1.4> puts $result
{size {{max 100} {min 10}}}

expect1.6> keylget result size
{max 100} {min 10}