Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (14 sloc) 0.398 kb
#!perl -w
use strict;
use warnings;
print "1..2\n";
use URI::URL;
my $b = URI::URL->new("http://www/");
my $u1 = URI::URL->new("foo", $b);
my $u2 = $u1->clone;
#use Data::Dump; Data::Dump::dump($b, $u1, $u2);
print "not " unless $u1->abs->as_string eq "http://yyy/foo";
print "ok 1\n";
print "not " unless $u2->abs->as_string eq "http://www/foo";
print "ok 2\n";
Jump to Line
Something went wrong with that request. Please try again.