perl – 无法创建WWW实例:Mechanize :: Firefox

前端之家收集整理的这篇文章主要介绍了perl – 无法创建WWW实例:Mechanize :: Firefox前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我刚刚安装了 WWW:Mechanize::Firefox,但是当我尝试创建这个“类”的实例时:
my $mech = WWW::Mechanize::Firefox->new();

我收到此错误

Failed to connect to,problem connecting to "localhost",port 4242: 
No connection could be made because the target machine 
actively refused it. 
at C:/strawberry/perl/site/lib/MozRepl/Client.pm line 144

有人可以帮忙吗?

@H_301_11@解决方法
您必须安装 mozrepl并在菜单工具→MozRepl→开始中启动它.
原文链接:https://www.f2er.com/Perl/172892.html

猜你在找的Perl相关文章