http://www.perlmonks.org?node_id=1038135


in reply to Re^2: Using Splice with Two Arrays within a loop
in thread Using Splice with Two Arrays within a loop

You're supposed to split the argument list into two with splice before the loop.