Each element of the list may contain an identifier and a value separated by a single =. Elements are separated by | characters to allow having spaces in both identifiers and values. We don't have escaping. Yes, this means you can't pass "=" or "|" in a value. Example:
south=45 north=11
From tcl, you can cycle trough the list with a script like this, assuming you have your list in a string called $string:
foreach {name value} [split $string "|="] { puts "$name ==> $value" }NOTE: it's very important that you do NOT put {} around split, since that would make the splitted string assembled into one long word again.
foreach {x y} [split $string ":"] {}
Let's say the result is in form "X:Y=D". In this case, D is a direction. An example for the list:
"144:23=NE 142:23=SW"
You can process the above string with a script like this:
foreach {x y d} [split $string "|:="] { puts "$x : $y -> $d" }