如何使用 perl 根据条件将行拆分为数组?
我有以下文件,每个段落之间都有空格分隔符..
日志信息.txt
LogA
fjlfjdklafjdkla;fdjklafdja
adjalfdlafdjkla;fdla;fdl;a
faklfdaldflkafdlkafdklafdl
LogB
djfkalfjdklafdkla;fdkla;fd
afdjkalfdkla;fdlk;afdla;fd
LogC
djfkalfjdklafdkla;fdkla;fd
afdjkalfdkla;fdlk;afdla;fd
LogA
fjlfjdklafjdkla;fdjklafdja
adjalfdlafdjkla;fdla;fdl;a
faklfdaldflkafdlkafdklafdl
LogB
djfkalfjdklafdkla;fdkla;fd
afdjkalfdkla;fdlk;afdla;fd
LogC
djfkalfjdklafdkla;fdkla;fd
afdjkalfdkla;fdlk;afdla;fd
LogA
fjlfjdklafjdkla;fdjklafdja
adjalfdlafdjkla;fdla;fdl;a
faklfdaldflkafdlkafdklafdl
LogB
djfkalfjdklafdkla;fdkla;fd
afdjkalfdkla;fdlk;afdla;fd
LogC
djfkalfjdklafdkla;fdkla;fd
afdjkalfdkla;fdlk;afdla;fd
使用perl,如何只获取LogB信息