tarsier_90410
Apr 11, 2011Nimbostratus
foreach items in list - behavior change in 10.x?
I am trying to find information regarding a change in behavior in the way foreach acts on lists from 9.x to 10.x and cannot find any previous threads on the matter. Is this an intentional change or a bug, and is there a work around to achieve the 9.x behavior in 10.x?
when HTTP_REQUEST {
set INFO {"1" "2" "3" "4" "5" "6" "7" "8" "9" "0" "a" "b" "c" "d" "e" "f"}
foreach {a b c d} $INFO {
log local0. "$a $b $c $d"
}
}
9.2.5 build 5.1 log output
1 2 3 4
5 6 7 8
9 0 a b
c d e f
10.2.1 build 297 log output
1 1 1 1
2 2 2 2
3 3 3 3
4 4 4 4