{
    "mode": "perldoc",
    "parameter": "ExtUtils::Miniperl",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/ExtUtils%3A%3AMiniperl/json",
    "generated": "2026-06-16T10:33:38Z",
    "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": "\"writemain()\" takes an argument list of zero or more directories\ncontaining archive libraries that relate to perl modules and should be\nlinked into a new perl binary. It writes a corresponding miniperlmain.c\nor perlmain.c file that is a plain C file containing all the bootstrap\ncode to make the modules associated with the libraries available from\nwithin perl. If the first argument to \"writemain()\" is a reference to a\nscalar it is used as the filename to open for output. Any other\nreference is used as the filehandle to write to. Otherwise output\ndefaults to \"STDOUT\".\n\nThe typical usage is from within perl's own Makefile (to build\nperlmain.c) or from regen/miniperlmain.pl (to build miniperlmain.c). So\nunder normal circumstances you won't have to deal with this module\ndirectly.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "ExtUtils::MakeMaker\n",
            "subsections": []
        }
    },
    "summary": "ExtUtils::Miniperl - write the C code for miniperlmain.c and perlmain.c",
    "flags": [],
    "examples": [],
    "see_also": []
}