That's probably because your $Value becomes an object with overloaded stringification, so it prints 111, but really is a reference to a scalar blessed into Tcl::Var package. Try storing "$Value" instead of just $Value to force stringification and store only the value you need.