{
    "mode": "perldoc",
    "parameter": "File::DosGlob",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/File%3A%3ADosGlob/json",
    "generated": "2026-06-10T23:08:26Z",
    "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": {
        "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 is largely compatible\nwith perlglob.exe (the M$ setargv.obj version) in all but one respect--it understands wildcards\nin directory components.\n\nFor example, \"<..\\\\l*b\\\\file/*glob.p?>\" will work as expected (in that it will find something\nlike '..\\lib\\File/DosGlob.pm' alright). Note that all path components are case-insensitive, and\nthat backslashes and forward slashes are both accepted, and preserved. You may have to double\nthe backslashes if you are putting them in literally, due to double-quotish parsing of the\npattern by perl.\n\nSpaces in the argument delimit distinct patterns, so \"glob('*.exe *.dll')\" globs all filenames\nthat end in \".exe\" or \".dll\". If you want to put in literal spaces in the glob pattern, you can\nescape them with either double quotes, or backslashes. e.g. \"glob('c:/\"Program\nFiles\"/*/*.dll')\", or \"glob('c:/Program\\ Files/*/*.dll')\". The argument is tokenized using\n\"Text::ParseWords::parseline()\", so see Text::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)",
            "subsections": [
                {
                    "name": "glob",
                    "content": ""
                }
            ]
        },
        "BUGS": {
            "content": "Should probably be built into the core, and needs to stop pandering to DOS habits. Needs a dose\nof optimization too.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Gurusamy Sarathy <gsar@activestate.com>\n",
            "subsections": []
        },
        "HISTORY": {
            "content": "*   Support for globally overriding glob() (GSAR 3-JUN-98)\n\n*   Scalar context, independent iterator context fixes (GSAR 15-SEP-97)\n\n*   A few dir-vs-file optimizations result in glob importation being 10 times faster than using\nperlglob.exe, and using perlglob.bat is only twice as slow as perlglob.exe (GSAR 28-MAY-97)\n\n*   Several cleanups prompted by lack of compatible perlglob.exe under Borland (GSAR 27-MAY-97)\n\n*   Initial version (GSAR 20-FEB-97)\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "perl\n\nperlglob.bat\n\nText::ParseWords\n",
            "subsections": []
        }
    },
    "summary": "File::DosGlob - DOS like globbing and then some",
    "flags": [],
    "examples": [],
    "see_also": []
}