use URI::URL; print url("foo/test.html")->abs("http://www.sun.com/");'