7 # Test configuration via some global variables.
9 $URI::URL::ABS_REMOTE_LEADING_DOTS = 1;
10 $URI::URL::ABS_ALLOW_RELATIVE_SCHEME = 1;
12 $u1 = url("../../../../abc", "http://web/a/b");
14 print "not " unless $u1->abs->as_string eq "http://web/abc";
18 local $URI::URL::ABS_REMOTE_LEADING_DOTS;
19 print "not " unless $u1->abs->as_string eq "http://web/../../../abc";
24 $u1 = url("http:../../../../abc", "http://web/a/b");
25 print "not " unless $u1->abs->as_string eq "http://web/abc";
29 local $URI::URL::ABS_ALLOW_RELATIVE_SCHEME;
30 print "not " unless $u1->abs->as_string eq "http:../../../../abc";
32 print "not " unless $u1->abs(undef,1)->as_string eq "http://web/abc";
36 print "not " unless $u1->abs(undef,0)->as_string eq "http:../../../../abc";