set a 1
To access the contents of a variable, use a dollar sign (“$”) before the variable name. The following example prints "Hello world" in a different way.
set a Hello set b world puts "$a $b"
Did you find the information on this page useful?