I'm trying to print a tcl variable , but its returning error:
set ay 126
% set val [format "%x" $ay]
7e
% puts "1::$val"
1::7e
% puts "111:$val::1"
can't read "val::1": no such variable
% puts "1::$val"
1::7e
% puts "111:$val"
111:7e
% puts "111:$val:1"
111:7e:1
%
Only when the variable is placed before a "::" the error is coming up.