WWW::Me...e::Link(3)
okay bestie, welcome to the manual page for WWW::Mechanize::Link β the page itself is WWW::Me...e::Link(3) β¨
π NAME π
WWW::Mechanize::Link β Link object for WWW::Mechanize, periodt π«Ά
β¨ VERSION β¨
version 2.19 β that's the version vibe check, no cap π
πΈ SYNOPSIS πΈ
Link object to encapsulate all the stuff that Mech needs but nobody wants to deal with as an array. Literally it's giving "wrap it up so we don't have to touch a raw array" π
π Constructor π
π new() π
okay so you can build one with the hashref interface:
my $link = WWW::Mechanize::Link->new( {
url => $url,
text => $text,
name => $name,
tag => $tag,
base => $base,
attr => $attr_href,
} );
For compatibility, this older interface is also supported:
new( $url, $text, $name, $tag, $base, $attr_href )
Creates and returns a new WWW::Mechanize::Link object. Slay π
π¦ Accessors π¦
$link->url()β URL from the link, iykyk π$link->text()β text of the link, literally the words π¬$link->name()β theNAMEattribute from the source tag, if any π$link->tag()β tag name, and it's one of:"a","area","frame","iframe"or"meta"π$link->base()β base URL to which the links are relative π$link->attrs()β returns hash ref of all the attributes and attribute values in the tag, all tucked in π$link->URI()β returns the URL as aURI::URLobject, iconic β¨$link->url_abs()β returns aURI::URLobject for the absolute form of the string, no cap π₯
π SEE ALSO π
WWW::Mechanize and WWW::Mechanize::Image β go say hi bestie π
π AUTHOR π
Andy Lester <andy at petdance.com> β author energy π
π«Ά COPYRIGHT AND LICENSE π«Ά
This software is copyright (c) 2004 by Andy Lester. π
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Periodt π
mwah π β source/version: perl v5.42.0; date: 2024-09-17.
π¦ where this page comes from
- opensuse-leap 16.0: perl-WWW-Mechanize 2.190.0-160000.2.2 Β· 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