[英]Perl module 'WWW::Mechanize::Chrome' do not work
我使用'WWW::Mechanize::Chrome'來生成pdf。
use Log::Log4perl qw(:easy);
use WWW::Mechanize::Chrome;
my $chrome;
sub chrome {
Log::Log4perl->easy_init($ERROR);
my $mech = WWW::Mechanize::Chrome->new(
headless => 1,
'disable-gpu' => 1,
launch_exe => 'chromium-browser',
);
當我調用new
時,我得到了錯誤。如果深入了解,我們可以在 797 行連接時看到錯誤。 為什么會發生這種情況以及如何處理?
您不能分配給功能:
運行這個例子,你會在第 3 行得到同樣的錯誤:
sub test { }
sub left { }
left() .= test()
特別是在這種情況下,您的調試器無法處理lvalue subroutine
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.