Open
Description
Dear Ricardo,
I found that
Email::Valid->address( -address => '[email protected]', -tldcheck => 1 );
causes warnings in Email::Valid.pm module:
Use of uninitialized value $tld in hash element at /usr/local/share/perl/5.18.2/Email/Valid.pm line 234.
Use of uninitialized value $_[0] in lc at /usr/local/share/perl/5.18.2/Net/Domain/TLD.pm line 2033.
I think the problem with line 234:
$ head -n 234 Valid.pm | tail -n 5
- my ($tld) =
$host =~ m#.(\w+)$ #; - my %invalid_tlds = map { $_ => 1 } qw(invalid test example localhost);
- return defined $invalid_tlds{$tld} ? 0 : Net::Domain::TLD::tld_exists($tld);
due to lack of undef control after
my ($tld) =
Regards,
Alessandro
Metadata
Metadata
Assignees
Labels
No labels