Input.txt:line.....1line.....2line.....3.....line.....3line.....4line.....5.....line.....4line.....5line.....6.....line.....5line.....6line.....7.....Condition for output file names mentioned in name.txt.name.txt:chapter01.txtchapter02.txtchapter03.txtchapter04.txtneed output for following txt fileschapter01.txt:line.....1line.....2line.....3.....chapter02.txt:line.....3line.....4line.....5.....chapter03.txt:line.....4line.....5line.....6.....chapter04.txt:line.....5line.....6line.....7.....
How to split files?
perl