Subject: | URI::URL::strict() equivalent for URI |
URI::Find is still using URI::URL. The primary reason is laziness...
but also that it relies on URI::URL::strict() to identify if a given URL
is a recognized scheme. I prefer to delegate that to URI rather than
maintaining my own list. URI.pm doesn't have an equivalent, though I
see URI->new honors URI::URL::strict.
I can think of a number of hacky ways I could do it, checking if the
class of the URI is URI::_foreign springs to mind, but I'd like to do it
in a way that won't break later.
Perhaps something like...
sub has_valid_scheme {
my $self = shift;
return implementor($self->scheme) ? 1 : 0;
}