我剛剛安裝WWW:Mechanize::Firefox
,但是當我試圖創建這個「類」的一個實例:無法創建WWW的一個實例:機械化::火狐
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
任何人都可以幫忙嗎?
監聽連接你能張貼一些代碼?另外,如果你telnet到localhost會發生什麼:4242 – Eamorr
這段代碼太簡單了,因爲這個錯誤在開頭:使用WWW:Mechanize :: Firefox; $ mech = WWW :: Mechanize :: Firefox-> new();打印「blabla」;但它不會因爲之前退出:s – eliane
和抱歉,我不熟悉telnet和基本聯網! – eliane