So what are you stuck with, ..
find /usr/lib -iname "tclConfig.sh" or find /usr/local/lib -iname "tclConfig.sh" if no results are found then you should probably install tcl8.6 or something.
Code: Select all
package require http
package require zlib
set url "http://"
set tok [http::geturl $url -binary 1]
set dat [http::data $tok]
http::cleanup $tok
catch {[set dcd [zlib decompress $dat]]}
Code: Select all
array set list {
BE Belgium FR France ..
}
foreach {x} [array names list] {
if {[string equal -nocase $x "be"]} {
puts $list($x)
}
}