Vote 0 Votes

perl 裡的, 預設的 maxbufsize 是 1_048_576 (1M),
若在執行時遇到 maximum input buffer length exceeded 或 pattern match timed-out, 很可能是 maxbufsize 不夠,
可修改, 加大此預設值
maxbufsize => 10_485_760,
改成 10M

use Net::Telnet ();
$telnet = new Net::Telnet (Timeout => 20);

About this Entry

This page contains a single entry by Pank published on August 5, 2008 5:36 PM.

WordPress 中文語系檔 was the previous entry in this blog.

MSN build-in emotions is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives