URI::URL
This module creates URL objects that store all the
elements of a URL. These objects are used by the request
method of LWP::UserAgent for
server addresses, port numbers, filenames, protocol, and many other
elements that can be loaded into a URL.
The new
constructor
is used to make a URI::URL object:
$url = URI::URL->new($url_string [, $base_url])
This method creates a new URI::URL object with the URL given as the first parameter. An optional base URL can be specified as the second parameter and is useful for generating an absolute URL from a relative URL.
The following methods are for the URI::URL class.
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.