in reply to Re: Extracting each line in a file to new file seperately
in thread Extracting each line in a file to new file seperately
while <INFILE> { $i++; open OUT ">$i.txt"; #do whatever with your line print OUT, "...whatever..."; close OUT; #just to be tidy :) }
|
|---|