Forum OpenACS Q&A: procedure namespace conflict with standard tcl commands

I think I'm just having an off day, this is probably something simple I've delt with in the past, but that I just forgot. I am creating a new form widget, and in the validate script i need to run the tcl "string match..." command. But since I'm working in the template::data::validate:: namespace openacs assumes i want the template::data::validate::string proc. How do I use the regular tcl string proc within this namespace?
Collapse
Posted by russ m on
You can anchor the search by calling it as [::string match ...]

There's probably also an argument to be made for calling [template::data::validate::string ...] as [::template::data::validate::string ...] instead, although noone seems to do that in the current OACS codebase...

Most probably you want
  set x [::string ...]
-gustaf
thanks that does it.