My log file looks like this:
-----------------------------------------
this is file1
dataA
dataB
dataC
this is file2
dataA
dataB
dataC
this is file3
dataA
dataB
dataC
------------------------------------------
I would like my perl script read the log and report the data like this:
------------------------------------------
"file1","dataA","dataB","dataC"
"file2","dataA","dataB","dataC"
"file3","dataA","dataB","dataC"
--------------------------------------------
Could you help me?