GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  WWW::MECHANIZE::LINK (3)

.ds Aq ’

NAME

WWW::Mechanize::Link - Link object for WWW::Mechanize

CONTENTS

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

CW$link->url()

URL from the link

CW$link->text()

Text of the link

CW$link->name()

NAME attribute from the source tag, if any.

CW$link->tag()

Tag name (one of: a, area, frame, iframe or meta).

CW$link->base()

Base URL to which the links are relative.

CW$link->attrs()

Returns hash ref of all the attributes and attribute values in the tag.

CW$link->URI()

Returns the URL as a URI::URL object.

CW$link->url_abs()

Returns a URI::URL object for the absolute form of the string.

SEE ALSO

WWW::Mechanize and WWW::Mechanize::Image

COPYRIGHT & LICENSE

Copyright 2004-2010 Andy Lester.

This program is free software; you can redistribute it and/or modify it under the terms of either:
o the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or
o the Artistic License version 2.0.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 WWW::MECHANIZE::LINK (3) 2015-06-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.