<?xml version="1.0" encoding="windows-1252"?>
<node id="900729" title="Relative URI" created="2011-04-21 18:26:13" updated="2011-04-21 18:26:13">
<type id="115">
perlquestion</type>
<author id="832495">
choroba</author>
<data>
<field name="doctext">
Dear Monks. Can anyone explain the following behaviour?&lt;c&gt;
use strict;
use warnings;
use feature "say";

use URI;
my $base = URI-&gt;new("http://a.b.c/d/../e/");
my $uri = URI-&gt;new("http://a.b.c/y");
say $uri-&gt;rel($base); # ../../../y
&lt;/c&gt;
The only explanation I can think of is that /../ are only understood in relative URI's, not in absolute ones. But why? Can you enlighten me?</field>
</data>
</node>
