Forum Discussion
hooleylist
Jun 29, 2010Cirrostratus
Unexpected result from foreach loop on 10.2
While testing a simple iRule to print out the contents of an array, I found a weird result when using "foreach {name value} [array get myarray]" on 10.2.0. The unexpected output is bolded below for t...
hooleylist
Sep 20, 2010Cirrostratus
Hi Brad,
Your post became corrupted. Can you repost the iRule in [ code ] [/ code ] blocks?
Also, the static namespace wouldn't allow you to modify the values after the RULE_INIT event and have those changes sync'ed across multiple TMM instances. If you need to use a globally available array, you can still use $::my_array--it just won't be CMP compatible. You could use the table commands instead for similar functionality that is CMP compatible:
http://devcentral.f5.com/wiki/default.aspx/iRules/table
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