Forum Discussion
Thomas_Laubrock
Sep 05, 2005Nimbostratus
foreach iterates an array in reverse order
Hi *,
I just fund a false friend.
A foreachstatement like:
array set ersetzer {
"https://portal.domain:80" "https://portal.domain.net"
"http://port...
unRuleY_95363
Sep 07, 2005Historic F5 Account
In Tcl, a list is really an ordered array. An array is really a hash. So, the order in which an array is iterated across depends on the hash of the entries and would appear completely random. If you always want to iterated in a specific order, then you likely want a list instead.
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