{
    "mode": "perldoc",
    "parameter": "WWW::Mechanize::Link",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/WWW%3A%3AMechanize%3A%3ALink/json",
    "generated": "2026-06-13T15:32:42Z",
    "synopsis": "Link object to encapsulate all the stuff that Mech needs but nobody wants to deal with as an\narray.",
    "sections": {
        "NAME": {
            "content": "WWW::Mechanize::Link - Link object for WWW::Mechanize\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 2.06\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "Link object to encapsulate all the stuff that Mech needs but nobody wants to deal with as an\narray.\n",
            "subsections": []
        },
        "Constructor": {
            "content": "new()\nmy $link = WWW::Mechanize::Link->new( {\nurl  => $url,\ntext => $text,\nname => $name,\ntag  => $tag,\nbase => $base,\nattr => $attrhref,\n} );\n\nFor compatibility, this older interface is also supported:\n\nnew( $url, $text, $name, $tag, $base, $attrhref )\n\nCreates and returns a new \"WWW::Mechanize::Link\" object.\n",
            "subsections": []
        },
        "Accessors": {
            "content": "$link->url()\nURL from the link\n\n$link->text()\nText of the link\n\n$link->name()\nNAME attribute from the source tag, if any.\n\n$link->tag()\nTag name (one of: \"a\", \"area\", \"frame\", \"iframe\" or \"meta\").\n\n$link->base()\nBase URL to which the links are relative.\n\n$link->attrs()\nReturns hash ref of all the attributes and attribute values in the tag.\n\n$link->URI()\nReturns the URL as a URI::URL object.\n\n$link->urlabs()\nReturns a URI::URL object for the absolute form of the string.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "WWW::Mechanize and WWW::Mechanize::Image\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Andy Lester <andy at petdance.com>\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "This software is copyright (c) 2004 by Andy Lester.\n\nThis is free software; you can redistribute it and/or modify it under the same terms as the Perl\n5 programming language system itself.\n",
            "subsections": []
        }
    },
    "summary": "WWW::Mechanize::Link - Link object for WWW::Mechanize",
    "flags": [],
    "examples": [],
    "see_also": []
}