in reply to URL resolve (operations on path etc.)
use warnings; use strict; use URI; my $x = 'http://a.com/a/b/c/d/e.json?x=1&y=2'; my $y = '../../../'; my $u = URI->new($y); print $u->abs($x), "\n"; __END__ http://a.com/a/
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: URL resolve (operations on path etc.)
by bliako (Monsignor) on Jul 31, 2022 at 08:03 UTC | |
Re^2: URL resolve (operations on path etc.)
by ikegami (Patriarch) on Aug 01, 2022 at 22:50 UTC | |
Re^2: URL resolve (operations on path etc.)
by harangzsolt33 (Chaplain) on Jul 31, 2022 at 11:31 UTC |
In Section
Seekers of Perl Wisdom