我是 Perl 的新手。我下载了库Net::SSH::Expect
v.1.09
并试图通过例子来使用它。
当我尝试执行脚本时,我收到以下消息:
Bareword "exp_continue" not allowed while "strict subs" in use at /hom/perl/Net/SSH/Expect.pm line 203.
最佳答案
Net::SSH::Expect 使用 Expect , 导出 exp_continue
到 Net::SSH::Expect。
或者至少它是假设的。要么你的 Expect 版本比 Net::SSH::Expect 的先决条件要旧得多,要么 Perl 发现的 Expect.pm 不是 CPAN 上的模块。 (也许是您自己的模块之一?)
如果是前一个问题,升级Expect。如果是后一个问题,请重命名您的模块。
关于Perl:lib Net::SSH::Expect 中的裸字 "exp_continue",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27300936/