cut_out 8 2 #### ORIGINAL 1 2 3 4 TO 10 #### open (true, "REST"); while () { chomp; $j = $_; print $j; open (out, ">$.out.test"); while (){ if (1..$.==$j) {print out} else {print rest}; print "\nCUT"; rename (REST, COMPARE); } } ~