#perl 文件的寫入 css
open(OUT, ">file1");
print OUT("ccccccccccssssssHere is an output line.\n"); 指針
運行以後,竟然報錯:Undefined subroutine &main::OUT called at std.pl line 5. file
沒有定義子程序!!鬱悶,這個文件指針怎麼會是沒定義子程序呢, perl
最後發現我寫錯了 print OUT ("ccccccccccssssssHere is an output line.\n"); OUT 後面要有個空格才能夠! 程序