use URI; my $a = URI->new('hello', 'http'); say $a->scheme; ## return nothing here. say ref $a; ## URI::http I suppose you should also check the package name and return the scheme accordingly?
This queue is for tickets about the URI CPAN distribution.
This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.
Please report any issues with rt.cpan.org to email@example.com.