Forum Discussion
Deb_Allen_18
Feb 22, 2006Historic F5 Account
Referencing a class with a variable
I'm wondering if I can reference a class with a variable?
Will the class reference below evaluate to $::myclass?
when HTTP_REQUEST {
set uri_discards myclass
if {[matchcl...
hoolio
Cirrostratus
Nov 03, 2008Hi Jason,
This is the article Colin was referring to:
Dynamically declaring a class name based on Request info
http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=37
I think you might be able to use subst as well:
TCL subst man page
http://www.tcl.tk/man/tcl8.4/TclCmd/subst.htm
Examples:
http://devcentral.f5.com/Default.aspx?tabid=53&view=topic&postid=23503&ptarget=23562
Aaron
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