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'