Subject: | "cannot read type" when checking certain sites |
Date: | Fri, 30 Sep 2016 13:19:55 +0200 |
To: | bug-net-ssl-expiredate [...] rt.cpan.org |
From: | Michael Schaap <cpan [...] mscha.org> |
#!/usr/bin/env perl
use 5.020;
use strict;
use warnings;
use Net::SSL::ExpireDate;
my $ed = Net::SSL::ExpireDate->new(https=>'www.libris.nl');
if ($ed->expire_date) {
say $ed->expire_date;
}
else {
say "Error!";
}
#
# Expected behaviour: prints expiration date of https://www.libris.nl/
certificate
#
# Actual behaviour: prints
# cannot read type at ./net-ssl-expiredate-bug line 10.
# Error!
#
# Perl 5.24.0
# Net::SSL::ExpireDate 1.17
#