-
-
14 Jun 2022 14:22:59 UTC
- Distribution: WWW-Mechanize
- Module version: 2.09
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (406 / 0 / 0)
- Kwalitee
Bus factor: 5- 91.96% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (180.84KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 52 contributors- Andy Lester <andy at petdance.com>
-
Alexandr Ciornii
-
Andrew Grangaard
-
Andy Lester
-
Bernhard Wagner
-
Chase Whitener
-
dakkar
-
Dave Doyle
-
David Precious
-
David Steinbrunner
-
Desmond Daignault
-
Ed Avis
-
Evan Zacks
-
Ferenc Erki
-
Flavio Poletti
-
Florian Schlichting
-
Gabor Szabo
-
gjtunley@gmail.com
-
Graham Knop
-
gregor herrmann
-
Grigor Karavardanyan
-
James Raspass
-
Jason May
-
Jesse Vincent
-
John Beppu
-
Jozef Kutej
-
Karen Etheridge
-
Kirrily 'Skud' Robert
-
Kivanc Yazan
-
Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯
-
Mark Stosberg
-
Martin H. Sluka
-
Matthew Chae
-
Matt S Trout
-
Max Maischein
-
Mohammad S Anwar
-
Neil Bowers
-
Nik LaBelle
-
Olaf Alders
-
Philippe Bruhat (BooK)
-
Ricardo Signes
-
Schuyler Langdon
-
Sergey Romanov
-
Shoichi Kaji
-
simbabque
-
Steve Scaffidi
-
Stuart Johnston
-
sunnavy
-
Varadinsky
-
Ville Skyttä
-
Zefram
-
積丹尼 Dan Jacobson
NAME
WWW::Mechanize::Link - Link object for WWW::Mechanize
VERSION
version 2.09
SYNOPSIS
Link object to encapsulate all the stuff that Mech needs but nobody wants to deal with as an array.
Constructor
new()
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.Accessors
$link->url()
URL from the link
$link->text()
Text of the link
$link->name()
NAME attribute from the source tag, if any.
$link->tag()
Tag name (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.
$link->URI()
Returns the URL as a URI::URL object.
$link->url_abs()
Returns a URI::URL object for the absolute form of the string.
SEE ALSO
WWW::Mechanize and WWW::Mechanize::Image
AUTHOR
Andy Lester <andy at petdance.com>
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.
Module Install Instructions
To install WWW::Mechanize, copy and paste the appropriate command in to your terminal.
cpanm WWW::Mechanize
perl -MCPAN -e shell install WWW::Mechanize
For more information on module installation, please visit the detailed CPAN module installation guide.