看板 [ Perl ]
討論串[問題] SELECT()?
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者pttask (批踢踢.問.XD)時間17年前 (2007/09/19 09:31), 編輯資訊
2
0
0
內容預覽:
假若運用Perl寫好一個執行資料處理程式. 程式處理過程之中會帶一些資訊print於螢幕上(也就是STDOUT). 一方面也方便確認程式執行進行到何處,一方面也方便查看一些相關訊息. 比如說程式中會印出 [MESSAGE] : The PTT_Perl File is already exists
(還有230個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者LiloHuang (相見不如懷念)時間17年前 (2007/09/19 10:26), 編輯資訊
0
0
0
內容預覽:
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";.

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者DarkKiller (System hacked)時間17年前 (2007/09/19 12:50), 編輯資訊
0
0
0
內容預覽:
比較好的方法是 Log::Dispatch 或是其他模組套件.... 不過你既然剛開始學的話,先自己寫 function 練習吧?. sub mylog. {. my $str = shift;. print STDERR "$str\n";. print LOG "$str\n";. }. ope
首頁
上一頁
1
下一頁
尾頁