Change the foreach to a while. You're not using the itteration value anyway.
I don't understand why, but the problem is to do with the way the @a is evaluated on each pass through the loop. The behaviour may be version dependent even.
In reply to Re: Array Processing
by GrandFather
in thread Array Processing
by Rajeshk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |