I have a question about string in TCL:
HANDLE_NAME "/group1/team1/RON"
proc HANDLE_NAME {playerName} {
#do something here
}
we pass the string “/group1/team1/RON” to the proc, but somewhere inside of the HANDLE_NAME, we only need the last part which is “RON”, how to operate the input string and get the last part of the input(only RON) and set it to a variable?
can anyone help?
1 Answer