ExtUtils::Miniperl(3p)

ExtUtils::Miniperl3p

Write the c code for miniperlmain.c and perlmain.c

Usage

    use ExtUtils::Miniperl;
    writemain(@directories);
    # or
    writemain($fh, @directories);
    # or
    writemain(\$filename, @directories);

Overview

writemain() takes an argument list of zero or more directories containing archive libraries that relate to perl modules and should be linked into a new perl binary. It writes a corresponding miniperlmain.c or perlmain.c file that is a plain C file containing all the bootstrap code to make the modules associated with the libraries available from within perl. If the first argument to writemain() is a reference to a scalar it is used as the filename to open for output. Any other reference is used as the filehandle to write to. Otherwise output defaults to "STDOUT".

The typical usage is from within perl's own Makefile (to build perlmain.c) or from regen/miniperlmain.pl (to build miniperlmain.c). So under normal circumstances you won't have to deal with this module directly.

Releases

32 releases since OpenBSD 5.0; the text changed 24 times.

  1. 5.0
  2. 5.1
  3. 5.2
  4. 5.3
  5. 5.4
  6. 5.5
  7. 5.6
  8. 5.7
  9. 5.8–5.9
  10. 6.0
  11. 6.1
  12. 6.2
  13. 6.3–6.4
  14. 6.5
  15. 6.6
  16. 6.7
  17. 6.8
  18. 6.9–7.2
  19. 7.3
  20. 7.4
  21. 7.5
  22. 7.6
  23. 7.7–7.8
  24. 7.9
  25. 8.0

From man 8.0-current-20261101 in OpenBSD 8.0-current (2026-11-01). Parsed by carta from the page's man source.