Forum Discussion
Deb_Allen_18
May 22, 2005Historic F5 Account
use of {} as text delimiter
Here's a case where I've used {} as a delimiter. It seems to work, but I was wondering if it was legal usage of {}s and whether there was a better way:
HTTP::redirect "http://ho...
unRuleY_95363
May 23, 2005Historic F5 Account
Yes, Tcl allows the use of braces {} as a variable name delimiter. As a matter of fact, if your variable name contains any non-alphanumeric characters (other than an underscore), you will have to use braces around the variable name.
For example, you can use a hyphen in your variable name as in:
set my-really-cool-name "Pooh Bear"
log "My name is: ${my-really-cool-name}"
However, the use of the hyphen will require the use of braces on all the variable references.
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
