Clovertech
› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › Tcl scripts that identifies keys
We at UIC were wondering if anyone had a tcl script that would spit out keyed list, the key and the value.
TIA,
Carl Tosi
Carl,
If you have a keyed list myKL, are you looking for something like:
foreach key [keylkeys myKL] {echo $key=[keylget myKL $key]}
- Mark Thompson HealthPartners
A keyed list is a list of two item lists, so this should work:
foreach v $myKL { echo [join $v =] }