{
    "mode": "info",
    "parameter": "File::DosGlob",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/info/File%3A%3ADosGlob/json",
    "generated": "2026-07-05T13:26:33Z",
    "synopsis": "require 5.004;\n# override CORE::glob in current package\nuse File::DosGlob 'glob';\n# override CORE::glob in ALL packages (use with extreme caution!)\nuse File::DosGlob 'GLOBALglob';\n@perlfiles = glob  \"..\\\\pe?l/*.p?\";\nprint <..\\\\pe?l/*.p?>;\n# from the command line (overrides only in main::)\n> perl -MFile::DosGlob=glob -e \"print <../pe*/*p?>\"",
    "sections": {
        "File::DosGlob(3perl)   Perl Programmers Reference Guide   File::DosGlob(3perl)": {
            "content": "",
            "subsections": []
        },
        "NAME": {
            "content": "File::DosGlob - DOS like globbing and then some\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "require 5.004;\n\n# override CORE::glob in current package\nuse File::DosGlob 'glob';\n\n# override CORE::glob in ALL packages (use with extreme caution!)\nuse File::DosGlob 'GLOBALglob';\n\n@perlfiles = glob  \"..\\\\pe?l/*.p?\";\nprint <..\\\\pe?l/*.p?>;\n\n# from the command line (overrides only in main::)\n> perl -MFile::DosGlob=glob -e \"print <../pe*/*p?>\"\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "A module that implements DOS-like globbing with a few enhancements.  It\nis largely compatible with perlglob.exe (the M$ setargv.obj version) in\nall but one respect--it understands wildcards in directory components.\n\nFor example, \"<..\\\\l*b\\\\file/*glob.p?>\" will work as expected (in that\nit will find something like '..\\lib\\File/DosGlob.pm' alright).  Note\nthat all path components are case-insensitive, and that backslashes and\nforward slashes are both accepted, and preserved.  You may have to\ndouble the backslashes if you are putting them in literally, due to\ndouble-quotish parsing of the pattern by perl.\n\nSpaces in the argument delimit distinct patterns, so \"glob('*.exe\n*.dll')\" globs all filenames that end in \".exe\" or \".dll\".  If you want\nto put in literal spaces in the glob pattern, you can escape them with\neither double quotes, or backslashes.  e.g. \"glob('c:/\"Program\nFiles\"/*/*.dll')\", or \"glob('c:/Program\\ Files/*/*.dll')\".  The\nargument is tokenized using \"Text::ParseWords::parseline()\", so see\nText::ParseWords for details of the quoting rules used.\n\nExtending it to csh patterns is left as an exercise to the reader.\n\nEXPORTS (by request only)\nglob()\n",
            "subsections": []
        },
        "BUGS": {
            "content": "Should probably be built into the core, and needs to stop pandering to\nDOS habits.  Needs a dose of optimization too.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Gurusamy Sarathy <gsar@activestate.com>\n",
            "subsections": []
        },
        "HISTORY": {
            "content": "o   Support for globally overriding glob() (GSAR 3-JUN-98)\n\no   Scalar context, independent iterator context fixes (GSAR 15-SEP-97)\n\no   A few dir-vs-file optimizations result in glob importation being 10\ntimes faster than using perlglob.exe, and using perlglob.bat is\nonly twice as slow as perlglob.exe (GSAR 28-MAY-97)\n\no   Several cleanups prompted by lack of compatible perlglob.exe under\nBorland (GSAR 27-MAY-97)\n\no   Initial version (GSAR 20-FEB-97)\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "perl\n\nperlglob.bat\n\nText::ParseWords\n\nperl v5.34.0                      2026-06-23              File::DosGlob(3perl)",
            "subsections": []
        }
    },
    "summary": "File::DosGlob - DOS like globbing and then some",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "DosGlob",
            "section": "3perl",
            "url": "https://www.chedong.com/phpMan.php/man/DosGlob/3perl/json"
        }
    ]
}