choroba has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks. Can anyone explain the following behaviour?
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?use strict; use warnings; use feature "say"; use URI; my $base = URI->new("http://a.b.c/d/../e/"); my $uri = URI->new("http://a.b.c/y"); say $uri->rel($base); # ../../../y
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Relative URI
by Anonymous Monk on Apr 21, 2011 at 23:48 UTC | |
by ikegami (Patriarch) on Apr 21, 2011 at 23:58 UTC | |
by JavaFan (Canon) on Apr 22, 2011 at 00:12 UTC | |
by ikegami (Patriarch) on Apr 22, 2011 at 07:08 UTC | |
by ikegami (Patriarch) on Apr 22, 2011 at 06:58 UTC | |
by Anonymous Monk on Apr 22, 2011 at 00:05 UTC | |
Re: Relative URI
by Khen1950fx (Canon) on Apr 22, 2011 at 03:47 UTC | |
by ikegami (Patriarch) on Apr 22, 2011 at 06:28 UTC |
Back to
Seekers of Perl Wisdom