in reply to Re: Skipping Elements in an Array
in thread Skipping Elements in an Array

change the flag to 2 to skip 2 elements
if ... $flag=2; ...