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
Back to
Seekers of Perl Wisdom