我有一个文本文件,如:
Name : first
File name : first_1
Year : 12
etc
etc
etc
T1 : this is t1
T2 : this is t2
T3 : this is t3
Conclusion : Success
Name : first
File name : first_2
Year : 13
etc
etc
etc
T1 : this is t1
T2 : this is t2
T3 : this is t3
Conclusion : Success
Name : second
File name : second_1
Year : 12
etc
etc
etc
T1 : this is t1
T2 : this is t2
T3 : this is t3
Conclusion : Failure
Name : first
File name : first_3
Year : 12
etc
etc
etc
T1 : this is t1
T2 : this is t2
T3 : this is t3
Conclusion : Success
等等.....
我需要一个 perl 脚本,它给我以下输出:
Naming File_name Year Conclusion Reason
first first_1 12 Success this is t1, this is t2, this is t3
first first_2 13 Success this is t1, this is t2, this is t3
second second_1 12 Failure this is t1, this is t2, this is t3
first first_3 12 Success this is t1, this is t2, this is t3