{
    "content": [
        {
            "type": "text",
            "text": "# Sys::Hostname (perldoc)\n\n**Summary:** Sys::Hostname - Try every conceivable way to get hostname\n\n**Synopsis:** use Sys::Hostname;\n$host = hostname;\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (3 lines)\n- **DESCRIPTION** (7 lines)\n- **AUTHOR** (6 lines)\n\n## Full Content\n\n### NAME\n\nSys::Hostname - Try every conceivable way to get hostname\n\n### SYNOPSIS\n\nuse Sys::Hostname;\n$host = hostname;\n\n### DESCRIPTION\n\nAttempts several methods of getting the system hostname and then caches the result. It tries the\nfirst available of the C library's gethostname(), `$Config{aphostname}`, uname(2),\n\"syscall(SYSgethostname)\", `hostname`, `uname -n`, and the file /com/host. If all that fails it\n\"croak\"s.\n\nAll NULs, returns, and newlines are removed from the result.\n\n### AUTHOR\n\nDavid Sundstrom <sunds@asictest.sc.ti.com>\n\nTexas Instruments\n\nXS code added by Greg Bacon <gbacon@cs.uah.edu>\n\n"
        }
    ],
    "structuredContent": {
        "command": "Sys::Hostname",
        "section": "",
        "mode": "perldoc",
        "summary": "Sys::Hostname - Try every conceivable way to get hostname",
        "synopsis": "use Sys::Hostname;\n$host = hostname;",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Sys::Hostname - Try every conceivable way to get hostname\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use Sys::Hostname;\n$host = hostname;\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Attempts several methods of getting the system hostname and then caches the result. It tries the\nfirst available of the C library's gethostname(), `$Config{aphostname}`, uname(2),\n\"syscall(SYSgethostname)\", `hostname`, `uname -n`, and the file /com/host. If all that fails it\n\"croak\"s.\n\nAll NULs, returns, and newlines are removed from the result.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "David Sundstrom <sunds@asictest.sc.ti.com>\n\nTexas Instruments\n\nXS code added by Greg Bacon <gbacon@cs.uah.edu>\n",
                "subsections": []
            }
        }
    }
}