open (OUT, ">.line"); while (<>) { print OUT $_; # increment file here } [download]
In reply to splitting output to separate files, one per line by Anonymous Monk