Help for this page

Select Code to Download


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