{
    "content": [
        {
            "type": "text",
            "text": "# ExtUtils::PL2Bat (perldoc)\n\n**Summary:** ExtUtils::PL2Bat - Batch file creation to run perl scripts on Windows\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **VERSION** (2 lines)\n- **OVERVIEW** (5 lines)\n- **FUNCTIONS** (42 lines)\n- **ACKNOWLEDGEMENTS** (3 lines)\n- **AUTHOR** (2 lines)\n- **COPYRIGHT AND LICENSE** (5 lines)\n\n## Full Content\n\n### NAME\n\nExtUtils::PL2Bat - Batch file creation to run perl scripts on Windows\n\n### VERSION\n\nversion 0.004\n\n### OVERVIEW\n\nThis module converts a perl script into a batch file that can be executed on Windows/DOS-like\noperating systems. This is intended to allow you to use a Perl script like regular programs and\nbatch files where you just enter the name of the script [probably minus the extension] plus any\ncommand-line arguments and the script is found in your PATH and run.\n\n### FUNCTIONS\n\npl2bat(%opts)\nThis function takes a perl script and write a batch file that contains the script. This is\nsometimes necessary\n\n*       \"in\"\n\nThe name of the script that is to be batchified. This argument is mandatory.\n\n*       \"out\"\n\nThe name of the output batch file. If not given, it will be generated using \"in\" and\n\"stripsuffix\".\n\n*       \"ntargs\"\n\nArguments to invoke perl with in generated batch file when run from Windows NT. Defaults\nto '-x -S %0 %*'.\n\n*       \"otherargs\"\n\nArguments to invoke perl with in generated batch file except when run from Windows NT\n(ie. when run from DOS, Windows 3.1, or Windows 95). Defaults to\n'-x -S \"%0\" %1 %2 %3 %4 %5 %6 %7 %8 %9'.\n\n*       \"stripsuffix\"\n\nStrip a suffix string from file name before appending a \".bat\" suffix. The suffix is not\ncase-sensitive. It can be a regex or a string and a trailing \"$\" is always assumed).\nDefaults to \"qr/\\.plx?/\".\n\n*       \"usewarnings\"\n\nWith the \"usewarnings\" option, \" -w\" is added after the value of $Config{startperl}. If\na line matching \"/^#!.*perl/\" already exists in the script, then it is not changed and\nthe -w option is ignored.\n\n*       \"update\"\n\nIf the script appears to have already been processed by pl2bat, then the script is\nskipped and not processed unless \"update\" was specified. If \"update\" is specified, the\nexisting preamble is replaced.\n\n### ACKNOWLEDGEMENTS\n\nThis code was taken from Module::Build and then modified; which had taken it from perl's pl2bat\nscript. This module is an attempt at unifying all three implementations.\n\n### AUTHOR\n\nLeon Timmermans <leont@cpan.org>\n\n### COPYRIGHT AND LICENSE\n\nThis software is copyright (c) 2015 by Leon Timmermans.\n\nThis is free software; you can redistribute it and/or modify it under the same terms as the Perl\n5 programming language system itself.\n\n"
        }
    ],
    "structuredContent": {
        "command": "ExtUtils::PL2Bat",
        "section": "",
        "mode": "perldoc",
        "summary": "ExtUtils::PL2Bat - Batch file creation to run perl scripts on Windows",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "OVERVIEW",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "FUNCTIONS",
                "lines": 42,
                "subsections": []
            },
            {
                "name": "ACKNOWLEDGEMENTS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT AND LICENSE",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}