in reply to Re^2: Nested Foreach Loop skipping every other element??
in thread Nested Foreach Loop skipping every other element??

Instead doing splice on the same @DIR which you used in the foreach, you can have a copy of @DIR and you can do splice on that array. For Ex. @DIR will be used in foreach, @DIR_COPY can be used in splice.


All is well