Perl: Bareword "exp_continue" in the lib Net::SSH::Expect

554 Views Asked by At

I am new in Perl. I downloaded the library Net::SSH::Expect v.1.09 and tried to use it by example.

When I try to execute a script I get the message:

Bareword "exp_continue" not allowed while "strict subs" in use at /hom/perl/Net/SSH/Expect.pm line 203.

1

There are 1 best solutions below

0
On

Net::SSH::Expect uses Expect, which exports exp_continue to Net::SSH::Expect.

Or at least it's suppose to. Either you have a version of Expect far older than the one indicated as Net::SSH::Expect's prerequisite, or the Expect.pm Perl finds isn't the module found on CPAN. (One of your own modules, perhaps?)

If it's the former problem, upgrade Expect. If it's the later problem, rename your module.