1ExtUtils::MM::Utils(3)User Contributed Perl DocumentationExtUtils::MM::Utils(3)
2
3
4
6 ExtUtils::MM::Utils - ExtUtils::MM methods without dependency on
7 ExtUtils::MakeMaker
8
10 require ExtUtils::MM::Utils;
11 MM->maybe_command($file);
12
14 This is a collection of ExtUtils::MM subroutines that are used by many
15 other modules but that do not need full-featured ExtUtils::MakeMaker.
16 The issue with ExtUtils::MakeMaker is it pulls in Perl header files and
17 that is an overkill for small subroutines.
18
19 An example is the IPC::Cmd that caused installing GCC just because of
20 three-line maybe_command() from ExtUtils::MM_Unix.
21
22 The intentions is to use ExtUtils::MM::Utils instead of
23 ExtUtils::MakeMaker for these trivial methods. You can still call them
24 via MM class name.
25
27 maybe_command
28 Returns true, if the argument is likely to be a command.
29
31 These methods are copied from ExtUtils::MM_Unix. Other operating
32 systems are not supported yet. The reason is this a hack for Linux
33 distributions <https://bugzilla.redhat.com/show_bug.cgi?id=1129443>.
34
36 ExtUtils::MakeMaker, ExtUtils::MM
37
38
39
40perl v5.38.0 2023-07-20 ExtUtils::MM::Utils(3)