in reply to Index isn't progressing in C-style for loop
Have you tried stepping through this with the debugger (and including Data::Dumper or related module for inspecting data structures)? I'd put a break point at the "if" statement.
When execution stops there, check the contents of the relevant variables and array elements to see whether they have unexpected values, or whether your choice of syntax is yielding unexpected results.
|
|---|