{
    "content": [
        {
            "type": "text",
            "text": "# File::FnMatch (perldoc)\n\n## NAME\n\nFile::FnMatch - simple filename and pathname matching\n\n## SYNOPSIS\n\nuse File::FnMatch qw(:fnmatch);    # import everything\n# shell-style: match \"/a/bc\", but not \"/a/.bc\" nor \"/a/b/c\"\nfnmatch(\"/a/*\", $fn, FNMPATHNAME|FNMPERIOD);\n# find our A- executables only\ngrep { fnmatch(\"A-*.exe\", $) } readdir SOMEDIR;\n\n## DESCRIPTION\n\nFile::FnMatch::fnmatch() provides simple, shell-like pattern matching.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION** (2 subsections)\n- **PATTERN SYNTAX**\n- **CAVEATS**\n- **SEE ALSO**\n- **AUTHOR**\n- **COPYRIGHT AND LICENSE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "File::FnMatch",
        "section": "",
        "mode": "perldoc",
        "summary": "File::FnMatch - simple filename and pathname matching",
        "synopsis": "use File::FnMatch qw(:fnmatch);    # import everything\n# shell-style: match \"/a/bc\", but not \"/a/.bc\" nor \"/a/b/c\"\nfnmatch(\"/a/*\", $fn, FNMPATHNAME|FNMPERIOD);\n# find our A- executables only\ngrep { fnmatch(\"A-*.exe\", $) } readdir SOMEDIR;",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "fnmatch",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/fnmatch/3/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 5,
                "subsections": [
                    {
                        "name": "Functions",
                        "lines": 4
                    },
                    {
                        "name": "Constants",
                        "lines": 19
                    }
                ]
            },
            {
                "name": "PATTERN SYNTAX",
                "lines": 11,
                "subsections": []
            },
            {
                "name": "CAVEATS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "COPYRIGHT AND LICENSE",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "File::FnMatch - simple filename and pathname matching\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use File::FnMatch qw(:fnmatch);    # import everything\n\n# shell-style: match \"/a/bc\", but not \"/a/.bc\" nor \"/a/b/c\"\nfnmatch(\"/a/*\", $fn, FNMPATHNAME|FNMPERIOD);\n\n# find our A- executables only\ngrep { fnmatch(\"A-*.exe\", $) } readdir SOMEDIR;\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "File::FnMatch::fnmatch() provides simple, shell-like pattern matching.\n\nThough considerably less powerful than regular expressions, shell patterns are nonetheless\nuseful and familiar to a large audience of end-users.\n",
                "subsections": [
                    {
                        "name": "Functions",
                        "content": "fnmatch ( PATTERN, STRING [, FLAGS] )\nReturns true if *PATTERN* matches *STRING*, undef otherwise. *FLAGS* may be the bitwise\nOR'ing of any supported FNM* constants (see below).\n"
                    },
                    {
                        "name": "Constants",
                        "content": "FNMNOESCAPE\nDo not treat a backslash ('\\') in *PATTERN* specially. Otherwise, a backslash escapes the\nfollowing character.\n\nFNMPATHNAME\nProhibit wildcards from matching a slash ('/').\n\nFNMPERIOD\nProhibit wildcards from matching a period ('.') at the start of a string and, if\nFNMPATHNAME is also given, immediately after a slash.\n\nOther possibilities include at least FNMCASEFOLD (compare \"qr//i\"), FNMLEADINGDIR to restrict\nmatching to everything before the first '/', FNMFILENAME as a synonym for FNMPATHNAME, and\nthe rather more exotic FNMEXTMATCH. Consult your system documentation for details.\n\nEXPORT\nNone by default. The export tag \":fnmatch\" exports the fnmatch function and all available FNM*\nconstants.\n"
                    }
                ]
            },
            "PATTERN SYNTAX": {
                "content": "Wildcards are the question mark ('?') to match any single character and the asterisk ('*') to\nmatch zero or more characters. FNMPATHNAME and FNMPERIOD restrict the scope of the wildcards,\nnotably supporting the UNIX convention of concealing \"dotfiles\":\n\nBracket expressions, enclosed by '[' and ']', match any of a set of characters specified\nexplicitly (\"[abcdef]\"), as a range (\"[a-f0-9]\"), or as the combination these (\"[a-f0-9XYZ]\").\nAdditionally, many implementations support named character classes such as \"[[:xdigit:]]\".\nCharacter sets may be negated with an initial '!' (\"[![:space:]]\").\n\nLocale influences the meaning of fnmatch() patterns.\n",
                "subsections": []
            },
            "CAVEATS": {
                "content": "Most UNIX-like systems provide an fnmatch implementation. This module will not work on platforms\nlacking an implementation, most notably Win32.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "File::Glob, POSIX::setlocale, fnmatch(3)\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Michael J. Pomraning\n\nPlease report bugs to <mjp-perl AT pilcrow.madison.wi.us>\n",
                "subsections": []
            },
            "COPYRIGHT AND LICENSE": {
                "content": "Copyright 2005 by Michael J. Pomraning\n\nThis library is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n",
                "subsections": []
            }
        }
    }
}