我是Perl的新手但是我在使用perl模块方面有点专长,我曾经在HTML :: table extract上工作但是当我处理Mechanize模块时,它一直在说我无法通过包"在运行时找到对象方法"new"以下计划
#!user/Perl/bin;
use strict;
use warnings;
use WWW::Mechanize;
my $URL ="https://accounts.google.com"
my $username = <>;
my $password = <>;
my $mech =new www::Mechanize();
$mech -> get($url);
$mech -> form_name('formname');
$mech -> field ('username' =>$username);
$mech -> field ('password' =>$password);
$mech -> click('signin');
Run Code Online (Sandbox Code Playgroud)
我也参加过堆栈溢出成员给出的一些指导方针,并按照以下步骤安装了Mechanize :: Firefox
cpan WWW::Mechanize::Firefox
cpan MozRepl
cpan MozRepl::RemoteObject
Run Code Online (Sandbox Code Playgroud)
但是我在运行代码时遇到了同样的错误
请帮帮我..
谢谢N @ veen