經安全檢測,此網站為安全網站,請放心前往原始網址!

[Perl][轉錄] 實例說明 Perl 特殊變數

接下來看一個會受到 $/ 影響的內置變數,還是先說實例 : $text = “C:\test.txt”; open FH, $text or die “can’t open:$!”; while {print “line $. is:$_”;} close FH; 先來看循環中的: print “line $. is:$_” 程序的作用是讀文件,並且,將文件逐行賦值給 ...

blog.lauct.org

網址安全性掃描由 google 提供