in reply to splitting output to separate files, one per line

UNIX style:
perl -ne 'open FH, ">$..line" and print FH $_ and close FH' data_file

Dos style:
perl -ne "open FH, '>', $..'.line' and print FH $_ and close FH " data +_file