{
    "content": [
        {
            "type": "text",
            "text": "# WWW::Mechanize::Link (perldoc)\n\n## NAME\n\nWWW::Mechanize::Link - Link object for WWW::Mechanize\n\n## SYNOPSIS\n\nLink object to encapsulate all the stuff that Mech needs but nobody wants to deal with as an\narray.\n\n## Sections\n\n- **NAME**\n- **VERSION**\n- **SYNOPSIS**\n- **Constructor**\n- **Accessors**\n- **SEE ALSO**\n- **AUTHOR**\n- **COPYRIGHT AND LICENSE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "WWW::Mechanize::Link",
        "section": "",
        "mode": "perldoc",
        "summary": "WWW::Mechanize::Link - Link object for WWW::Mechanize",
        "synopsis": "Link object to encapsulate all the stuff that Mech needs but nobody wants to deal with as an\narray.",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "Constructor",
                "lines": 16,
                "subsections": []
            },
            {
                "name": "Accessors",
                "lines": 24,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT AND LICENSE",
                "lines": 5,
                "subsections": []
            }
        ],
        "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": []
            }
        }
    }
}