URI::URL(3)
πΈ NAME πΈ
okay so this is URI::URL(3) β yes bestie, the manual name is right there β aka URI::URL β Uniform Resource Locators, coming at you from the User Contributed Perl Documentation aisle π. She's iconic, she's old-school, and she's here to explain the URL vibes.
β¨ SYNOPSIS β¨
$u1 = URI::URL->new($str, $base);
$u2 = $u1->abs;
π DESCRIPTION π
This module is provided for backwards compatibility with modules that depend on the interface provided by the URI::URL class that used to be distributed with the libwww-perl library. No cap β she's literally the legacy-compat bestie π«Ά.
The following differences exist compared to the URI class interface:
URI::URLexports theurl()function as an alternate constructor interface β a whole second way to pull up, iykyk β¨.- The constructor takes an optional
$baseargument. TheURI::URLclass is a subclass ofURI::WithBaseβ family tree slay π³. - The
URI::URL->newlocalclass method is the same asURI::file->new_abs. URI::URL::strict(1)β it's a whole thing, bestie π .$url->print_onmethod β yes, that method exists.$url->crackmethod β also real, don't come for me.$url->full_path: same as($uri->abs_path || "/")β literally that.$url->netloc: same as$uri->authority.$url->epath,$url->equery: same as$uri->path,$uri->query.$url->pathand$url->querypass unescaped strings β unescaped, bestie, that's the vibe π.$url->path_components: same as$uri->path_segments(if you don't consider path segment parameters).$url->paramsand$url->eparamsmethods β both of them, mwah π.$url->basemethod. SeeURI::WithBaseβ go look, she's right there π.$url->absand$url->relhave an optional$baseargument. SeeURI::WithBase.$url->frag: same as$uri->fragment.$url->keywords: same as$uri->query_keywords.$url->localpathand friends map to$uri->fileβ the whole friend group π«Ά.$url->addressand$url->encoded822addr: same as$uri->tofor mailto URI.$url->groupartmethod for news URI β news girlies rise π.$url->article: same as$uri->message.
π SEE ALSO π
URI, URI::WithBase β yes, both of them, go read, bestie πβ¨.
π COPYRIGHT π
Copyright 1998-2000 Gisle Aas.
π this page is running on perl v5.42.0, dated 2026-09-02 β mwah, bestie, that's the sign-off ππ
π¦ where this page comes from
- opensuse-leap 16.0: perl-URI 5.310.0-160000.3.1 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms