function could be put to some use here. You would need to split the
string out into scope, method and arguments, in a similar way to
following line in kglad's example above.
The folllowing code assumes that the split to separate the
arguments out into an array has been made. (trace only has one
argument, so its not a great example - there's a couple of others
included). Its only an more generalised extension of the approach
kglad used... and I found that many of the functions listed as
being in global scope didn't seem to work. It's definitely just a
starting point and not a full solution.