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?
Need help on my perl homework
所有跟帖:
•
I can do that/
-realdata?-
♀
(0 bytes)
()
06/25/2005 postreply
15:13:35