Net-DAVTalk
view release on metacpan or search on metacpan
lib/Net/DAVTalk.pm view on Meta::CPAN
my $Path = shift;
my $URL = $Self->{url};
# If a reference, assume absolute
if (ref $Path) {
($URL, $Path) = $$Path =~ m{(^https?://[^/]+)(.*)$};
}
if ($Path) {
$Path = join "/", map { uri_escape $_ } split m{/}, $Path, -1;
if ($Path =~ m{^/}) {
$URL =~ s{(^https?://[^/]+)(.*)}{$1$Path};
}
else {
$URL =~ s{/$}{};
$URL .= "/$Path";
}
}
return $URL;
( run in 0.852 second using v1.01-cache-2.11-cpan-71847e10f99 )