{
    "mode": "perldoc",
    "parameter": "ExtUtils::Miniperl",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/ExtUtils%3A%3AMiniperl/json",
    "generated": "2026-08-16T14:13:19Z",
    "synopsis": "use ExtUtils::Miniperl;\nwritemain(@directories);\n# or\nwritemain($fh, @directories);\n# or\nwritemain(\\$filename, @directories);",
    "sections": {
        "NAME": {
            "content": "ExtUtils::Miniperl - write the C code for miniperlmain.c and perlmain.c\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use ExtUtils::Miniperl;\nwritemain(@directories);\n# or\nwritemain($fh, @directories);\n# or\nwritemain(\\$filename, @directories);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "",
            "subsections": [
                {
                    "name": "writemain",
                    "content": "relate to perl modules and should be linked into a new perl binary. It writes a corresponding\nminiperlmain.c or perlmain.c file that is a plain C file containing all the bootstrap code to\nmake the modules associated with the libraries available from within perl. If the first argument\nto writemain() is a reference to a scalar it is used as the filename to open for output. Any\nother reference is used as the filehandle to write to. Otherwise output defaults to \"STDOUT\".\n\nThe typical usage is from within perl's own Makefile (to build perlmain.c) or from\nregen/miniperlmain.pl (to build miniperlmain.c). So under normal circumstances you won't have to\ndeal with this module directly.\n"
                }
            ]
        },
        "SEE ALSO": {
            "content": "ExtUtils::MakeMaker\n",
            "subsections": []
        }
    },
    "summary": "ExtUtils::Miniperl - write the C code for miniperlmain.c and perlmain.c",
    "flags": [],
    "examples": [],
    "see_also": []
}