{
    "content": [
        {
            "type": "text",
            "text": "# URI::Heuristic (perldoc)\n\n## NAME\n\nURI::Heuristic - Expand URI using heuristics\n\n## SYNOPSIS\n\nuse URI::Heuristic qw(ufuristr);\n$u = ufuristr(\"example\");          # http://www.example.com\n$u = ufuristr(\"www.sol.no/sol\");   # http://www.sol.no/sol\n$u = ufuristr(\"aas\");              # http://www.aas.no\n$u = ufuristr(\"ftp.funet.fi\");     # ftp://ftp.funet.fi\n$u = ufuristr(\"/etc/passwd\");      # file:/etc/passwd\n\n## DESCRIPTION\n\nThis module provides functions that expand strings into real absolute URIs using some built-in\nheuristics. Strings that already represent absolute URIs (i.e. that start with a \"scheme:\" part)\nare never modified and are returned unchanged. The main use of these functions is to allow\nabbreviated URIs similar to what many web browsers allow for URIs typed in by the user.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION** (2 subsections)\n- **ENVIRONMENT**\n- **COPYRIGHT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "URI::Heuristic",
        "section": "",
        "mode": "perldoc",
        "summary": "URI::Heuristic - Expand URI using heuristics",
        "synopsis": "use URI::Heuristic qw(ufuristr);\n$u = ufuristr(\"example\");          # http://www.example.com\n$u = ufuristr(\"www.sol.no/sol\");   # http://www.sol.no/sol\n$u = ufuristr(\"aas\");              # http://www.aas.no\n$u = ufuristr(\"ftp.funet.fi\");     # ftp://ftp.funet.fi\n$u = ufuristr(\"/etc/passwd\");      # file:/etc/passwd",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 7,
                "subsections": [
                    {
                        "name": "uf_uristr",
                        "lines": 6
                    },
                    {
                        "name": "uf_uri",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "ENVIRONMENT",
                "lines": 21,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "URI::Heuristic - Expand URI using heuristics\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use URI::Heuristic qw(ufuristr);\n$u = ufuristr(\"example\");          # http://www.example.com\n$u = ufuristr(\"www.sol.no/sol\");   # http://www.sol.no/sol\n$u = ufuristr(\"aas\");              # http://www.aas.no\n$u = ufuristr(\"ftp.funet.fi\");     # ftp://ftp.funet.fi\n$u = ufuristr(\"/etc/passwd\");      # file:/etc/passwd\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This module provides functions that expand strings into real absolute URIs using some built-in\nheuristics. Strings that already represent absolute URIs (i.e. that start with a \"scheme:\" part)\nare never modified and are returned unchanged. The main use of these functions is to allow\nabbreviated URIs similar to what many web browsers allow for URIs typed in by the user.\n\nThe following functions are provided:\n",
                "subsections": [
                    {
                        "name": "uf_uristr",
                        "content": "Tries to make the argument string into a proper absolute URI string. The \"uf\" prefix stands\nfor \"User Friendly\". Under MacOS, it assumes that any string with a common URL scheme (http,\nftp, etc.) is a URL rather than a local path. So don't name your volumes after common URL\nschemes and expect ufuristr() to construct valid file: URL's on those volumes for you,\nbecause it won't.\n"
                    },
                    {
                        "name": "uf_uri",
                        "content": "Works the same way as ufuristr() but returns a \"URI\" object.\n"
                    }
                ]
            },
            "ENVIRONMENT": {
                "content": "If the hostname portion of a URI does not contain any dots, then certain qualified guesses are\nmade. These guesses are governed by the following environment variables:\n\nCOUNTRY   The two-letter country code (ISO 3166) for your location. If the domain name of your\nhost ends with two letters, then it is taken to be the default country. See also\nLocale::Country.\n\nHTTPACCEPTLANGUAGE, LCALL, LANG\nIf COUNTRY is not set, these standard environment variables are examined and country\n(not language) information possibly found in them is used as the default country.\n\nURLGUESSPATTERN\nContains a space-separated list of URL patterns to try. The string \"ACME\" is for some\nreason used as a placeholder for the host name in the URL provided. Example:\n\nURLGUESSPATTERN=\"www.ACME.no www.ACME.se www.ACME.com\"\nexport URLGUESSPATTERN\n\nSpecifying URLGUESSPATTERN disables any guessing rules based on country. An empty\nURLGUESSPATTERN disables any guessing that involves host name lookups.\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright 1997-1998, Gisle Aas\n\nThis library is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n",
                "subsections": []
            }
        }
    }
}