Skip Menu |

This queue is for tickets about the URI CPAN distribution.

Report information
The Basics
Id: 73129
Status: rejected
Priority: 0/
Queue: URI

People
Owner: Nobody in particular
Requestors: REDICAPS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.18
Fixed in: (no value)



Subject: $self->scheme bug
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?
The behaviour is the expected one (at least by me).  This might require some clarification in the documentation.  The 'scheme' part is only used to select the URI implementation class to use.  If the provided URI string is relative the URI will still be scheme-less.