Subject: | URI-Find-Schemeless thinks "http://" is a url |
use strict;
use warnings;
use Data::Dumper;
use URI::Find::Schemeless;
my $finder = URI::Find::Schemeless->new(
sub {
my ( $uri, $url ) = @_;
my $p = {
link => $uri->as_string,
domain => $uri->host,
};
warn Dumper($p);
return $url;
}
);
my $str = "http://";
$finder->find(\$str);
#$VAR1 = {
# 'link' => 'http:///',
# 'domain' => ''
# };