歡迎您光臨本站 註冊首頁

文件內容如下:

We will test Group1...
Teacher begin first -name A:
applaud number 100:not applaud number 100
Ball number:10 :attempt:10 made:6
Ball number:10 :attempt:10 lose:4
pass succeed
We will test Group1...
Teacher begin first -name B:
applaud number 100:not applaud number 100
Ball number:10 :attempt:10 made:6
Ball number:10 :attempt:10 lose:4
pass succeed
We will test Group1...
Teacher begin first -name C:
applaud number 100:not applaud number 100
Ball number:10 :attempt:10 made:6
Ball number:10 :attempt:10 lose:4
pass succeed
We will test Group1...
Student begin first -name A:
applaud number 100:not applaud number 100
Ball number:10 :attempt:10 made:6
Ball number:10 :attempt:10 lose:4
pass succeed
We will test Group1...
Student begin first -name B:
applaud number 100:not applaud number 100
Ball number:10 :attempt:10 made:6
Ball number:10 :attempt:10 lose:4
pass succeed


需要用perl實現將made和lose的數據如數到result.txt文件中,結果數據格式如下:
Teacher:
6 4 6 4 6 4
Student:
6 4 6 4 6 4
數字之間用tab間隔

以前沒有接觸過perl今天看了一天的書,還是不能實現,希望大俠們不吝賜教,多謝

[火星人 ] 請perl高手幫個忙,新手實現一個文本提取數據腳本,多謝已經有70次圍觀

http://coctec.com/docs/linux/show-post-102159.html