刚学perl,怎样用文件句柄循环读取两个相同符号间的内容?直到读完文件

html-css08

刚学perl,怎样用文件句柄循环读取两个相同符号间的内容?直到读完文件,第1张

use 5.014

open FH , "<" ,"test.txt"

$/ = '>'

while(<FH>){

    chomp

    say

}