Name
abs
Synopsis
$url
->abs([base
, [scheme
]])
Returns the absolute URL, given a base. If invoked
with no parameters, any previous definition of the base is used.
The second parameter is a Boolean that modifies abs
’s behavior. When the second
parameter is nonzero, abs
will accept a relative URL with a scheme but no host, such as
http:index.html
.
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.