set environment variable is tcl
How are environment variable set in tcl?
I googled and binged but can't find a single example. I see tons of discussion on how to get environment variables but nothing on setting environment variables.
I tried "set $env(MYVAR) xxxx" but it didn't work.