看板 Perl 關於我們 聯絡資訊
: 一開始 open LOG,">>logfile.txt"; : select(LOG);print "[MESSAGE] : The PTT_Perl File is already exists\n"; : select(STDOUT);print "[MESSAGE] : The PTT_Perl File is already exists\n"; : 不過這樣的話,程式之中需要PRINT的可能有數十行,這樣添加下去可能會錯亂...囧 : 不知道前輩是否有更好的建議呢 ? : 煩請指教,感謝 :~) open LOG,">>logfile.txt"; print LOG "[MESSAGE] : The PTT_Perl File is already exists\n"; print "[MESSAGE] : The PTT_Perl File is already exists\n"; -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.230.177.99