Skip Menu |

This queue is for tickets about the URI CPAN distribution.

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

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

Bug Information
Severity: Normal
Broken in: 1.55
Fixed in: (no value)



Subject: Scheme handling errors
The example from the man page does't work: [guillaume@beria ~]$ perl -MURI -e '$u2 = URI->new("foo", "http"); print $u2;' foo whereas one would expect the result to be 'http://foo' Additionaly, creating the object with a host name only, then setting the scheme thereafter doesn't get the expected result either: [guillaume@beria ~]$ perl -MURI -e '$u2 = URI->new("foo"); $u2->scheme("http"); print $u2;' http:foo whereas one would expect the result to be 'http://foo'
I think it behaves as documented. Your examples show how relative URIs are handled. The URI::Heuristic provide for guessing similar to what you requested.