我正在使用perl以XML格式返回數據集。現在我遇到了一種情況,我需要在將數據集發送到客戶端後進行一些清理。但有些地方,在mod perl和Apache的鏈中,輸出會一直持續到我的方法返回。 我試圖用類似命令清除緩衝區。 $| =1;
STDOUT->flush(); # flush the buffer so the content is sent to the client and the
我想將現有的perl文件移動到新的服務器,我得到一個錯誤(error_log文件)。它在舊服務器上工作。 當我訪問:http://2x.29.xx.xx/admin/web.pl 我得到一個錯誤: [error] Undefined subroutine &web_main::main called at /var/www/path/web.pl line 40. web.pl文件,它看起來像這樣