Forum Discussion
uni
Altocumulus
Sep 13, 2007Preventing interpreting variable as TCL
I have an iRule which is parsing the each field in a URI query. I am getting an occasional problem with a TCL error if $parameter starts with "-", as the interpreter assumes it is an option to the ...
Sep 13, 2007
To include dashes in your variables, you can enclose the variable in braces and will tell the interpretor to treat the enclosed value as a single entity.
switch [string tolower [lindex [split ${parameter} "="] 0]] {-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
