in reply to Splitting up lines in a few files

What have you tried? The general form of the thing is open your input file then enter a loop while there is more to read from the input file. In the loop open the next output file, copy n lines from the intput file to the output file, close the output file, continue with the next output file. When you exit the loop, close the input file. Where do you have difficulty with that?


Perl is Huffman encoded by design.