Corion / WWW-Mechanize-Chrome

automate the Chrome browser
https://metacpan.org/release/WWW-Mechanize-Chrome
Artistic License 2.0
30 stars 12 forks source link

Use of @_ in numeric eq (==) with signatured subroutine is experimental #67

Open KES777 opened 1 year ago

KES777 commented 1 year ago
Use of @_ in numeric eq (==) with signatured subroutine is experimental at local/lib/perl5/WWW/Mechanize/Chrome.pm line 818.
Use of @_ in array element with signatured subroutine is experimental at local/lib/perl5/WWW/Mechanize/Chrome.pm line 818.
Use of @_ in array element with signatured subroutine is experimental at local/lib/perl5/WWW/Mechanize/Chrome.pm line 1981.
Use of @_ in numeric eq (==) with signatured subroutine is experimental at local/lib/perl5/WWW/Mechanize/Chrome.pm line 5488.
Use of @_ in list assignment with signatured subroutine is experimental at local/lib/perl5/WWW/Mechanize/Chrome.pm line 5488.
Use of @_ in list assignment with signatured subroutine is experimental at local/lib/perl5/WWW/Mechanize/Chrome.pm line 5491.
Use of @_ in numeric eq (==) with signatured subroutine is experimental at local/lib/perl5/WWW/Mechanize/Chrome.pm line 5598.
Use of @_ in list assignment with signatured subroutine is experimental at local/lib/perl5/WWW/Mechanize/Chrome.pm line 5598.
Use of @_ in list assignment with signatured subroutine is experimental at local/lib/perl5/WWW/Mechanize/Chrome.pm line 5601.

Perl version: 5.36.0

rwp0 commented 1 year ago
Use of @_ in numeric eq (==) with signatured subroutine is experimental at /home/regular/perl5/perlbrew/perls/blead/lib/site_perl/5.37.9/WWW/Mechanize/Chrome.pm line 818.
Use of @_ in array element with signatured subroutine is experimental at /home/regular/perl5/perlbrew/perls/blead/lib/site_perl/5.37.9/WWW/Mechanize/Chrome.pm line 818.
Use of @_ in array element with signatured subroutine is experimental at /home/regular/perl5/perlbrew/perls/blead/lib/site_perl/5.37.9/WWW/Mechanize/Chrome.pm line 1981.
Use of @_ in numeric eq (==) with signatured subroutine is experimental at /home/regular/perl5/perlbrew/perls/blead/lib/site_perl/5.37.9/WWW/Mechanize/Chrome.pm line 5488.
Use of @_ in list assignment with signatured subroutine is experimental at /home/regular/perl5/perlbrew/perls/blead/lib/site_perl/5.37.9/WWW/Mechanize/Chrome.pm line 5488.
Use of @_ in list assignment with signatured subroutine is experimental at /home/regular/perl5/perlbrew/perls/blead/lib/site_perl/5.37.9/WWW/Mechanize/Chrome.pm line 5491.
Use of @_ in numeric eq (==) with signatured subroutine is experimental at /home/regular/perl5/perlbrew/perls/blead/lib/site_perl/5.37.9/WWW/Mechanize/Chrome.pm line 5598.
Use of @_ in list assignment with signatured subroutine is experimental at /home/regular/perl5/perlbrew/perls/blead/lib/site_perl/5.37.9/WWW/Mechanize/Chrome.pm line 5598.
Use of @_ in list assignment with signatured subroutine is experimental at /home/regular/perl5/perlbrew/perls/blead/lib/site_perl/5.37.9/WWW/Mechanize/Chrome.pm line 5601.
Could not read websocket endpoint from Chrome output. Do you maybe have a non-debug instance of Chrome already running? at /home/regular/perl5/perlbrew/perls/blead/lib/site_perl/5.37.9/WWW/Mechanize/Chrome.pm line 1034.

Getting the warnings with Blead Perl (5.37.9) as well.

Do I also need the debugging version of Chrome?

I am using the google-chrome-stable package from Google's website on Ubuntu 22.04.

Corion commented 1 year ago

Whoops, that is a problem in my code. I'll look that I release a fixed version soon!

fdulau commented 1 year ago

In perl 5.36 it is not no warnings 'experimental::signatures'; but no warnings 'experimental::args_array_with_signatures'; I added that line WWW::Mechanize::Chrome line 6 to fix the issue as a fast fix.

fheyer commented 1 year ago

These warnings are solved in branch fix-signatures-array. I would very much welcome a release which contains this branch to silence those warnings.

Thank you!