open (true, "< DATA.txt"); open (first, "> 1.out.text"); open (rest, "> 2.out.text"); $. <= 8 ? print first $_ : print rest $_ while();