1URI::URL(3)           User Contributed Perl Documentation          URI::URL(3)
2
3
4

NAME

6       URI::URL - Uniform Resource Locators
7

SYNOPSIS

9        $u1 = URI::URL->new($str, $base);
10        $u2 = $u1->abs;
11

DESCRIPTION

13       This module is provided for backwards compatibility with modules that
14       depend on the interface provided by the "URI::URL" class that used to
15       be distributed with the libwww-perl library.
16
17       The following differences exist compared to the "URI" class interface:
18
19       •  The URI::URL module exports the url() function as an alternate
20          constructor interface.
21
22       •  The constructor takes an optional $base argument.  The "URI::URL"
23          class is a subclass of "URI::WithBase".
24
25       •  The URI::URL->newlocal class method is the same as
26          URI::file->new_abs.
27
28       •  URI::URL::strict(1)
29
30       •  $url->print_on method
31
32       •  $url->crack method
33
34       •  $url->full_path: same as ($uri->abs_path || "/")
35
36       •  $url->netloc: same as $uri->authority
37
38       •  $url->epath, $url->equery: same as $uri->path, $uri->query
39
40       •  $url->path and $url->query pass unescaped strings.
41
42       •  $url->path_components: same as $uri->path_segments (if you don't
43          consider path segment parameters)
44
45       •  $url->params and $url->eparams methods
46
47       •  $url->base method.  See URI::WithBase.
48
49       •  $url->abs and $url->rel have an optional $base argument.  See
50          URI::WithBase.
51
52       •  $url->frag: same as $uri->fragment
53
54       •  $url->keywords: same as $uri->query_keywords
55
56       •  $url->localpath and friends map to $uri->file.
57
58       •  $url->address and $url->encoded822addr: same as $uri->to for mailto
59          URI
60
61       •  $url->groupart method for news URI
62
63       •  $url->article: same as $uri->message
64

SEE ALSO

66       URI, URI::WithBase
67
69       Copyright 1998-2000 Gisle Aas.
70
71
72
73perl v5.32.1                      2021-03-03                       URI::URL(3)
Impressum