Subject: | Incorrect Socket version test |
$Socket::VERSION is tested with a direct numeric comparison, which fails or at least throws warnings when Socket.pm has an underscore version. The correct way to handle this version check for any style of version Socket.pm may have is to replace:
if( $Socket::VERSION >= '2.010' ) {
with:
if( eval { Socket->VERSION('2.010'); 1 } ) {
on this line:
https://metacpan.org/source/PEVANS/Net-Async-HTTP-0.41/lib/Net/Async/HTTP.pm#L37