HEX
Server: LiteSpeed
System: Linux atali.colombiahosting.com.co 5.14.0-570.12.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 13 06:11:55 EDT 2025 x86_64
User: coopserp (1713)
PHP: 8.2.29
Disabled: dl,exec,passthru,proc_open,proc_close,shell_exec,memory_limit,system,popen,curl_multi_exec,show_source,symlink,link,leak,listen,diskfreespace,tmpfile,ignore_user_abord,highlight_file,source,show_source,fpaththru,virtual,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setid,posix_times,posix_ttyname,posix_uname,proc_get_status,proc_nice,proc_terminate
Upload Files
File: //proc/thread-self/root/proc/thread-self/root/usr/share/perl5/vendor_perl/ExtUtils/MM/Utils.pm
package ExtUtils::MM::Utils;

require 5.006;

use strict;
use vars qw($VERSION);
$VERSION = '7.11_06';
$VERSION = eval $VERSION;  ## no critic [BuiltinFunctions::ProhibitStringyEval]

=head1 NAME

ExtUtils::MM::Utils - ExtUtils::MM methods without dependency on ExtUtils::MakeMaker

=head1 SYNOPSIS

    require ExtUtils::MM::Utils;
    MM->maybe_command($file);

=head1 DESCRIPTION

This is a collection of L<ExtUtils::MM> subroutines that are used by many
other modules but that do not need full-featured L<ExtUtils::MakeMaker>. The
issue with L<ExtUtils::MakeMaker> is it pulls in Perl header files and that is
an overkill for small subroutines.

An example is the L<IPC::Cmd> that caused installing GCC just because of
three-line I<maybe_command()> from L<ExtUtils::MM_Unix>.

The intentions is to use L<ExtUtils::MM::Utils> instead of
L<ExtUtils::MakeMaker> for these trivial methods. You can still call them via
L<MM> class name.

=head1 METHODS

=over 4

=item maybe_command

Returns true, if the argument is likely to be a command.

=cut

if (!exists $INC{'ExtUtils/MM.pm'}) {
    *MM::maybe_command = *ExtUtils::MM::maybe_command = \&maybe_command;
}

sub maybe_command {
    my($self,$file) = @_;
    return $file if -x $file && ! -d $file;
    return;
}

1;

=back

=head1 BUGS

These methods are copied from L<ExtUtils::MM_Unix>. Other operating systems
are not supported yet. The reason is this
L<a hack for Linux
distributions|https://bugzilla.redhat.com/show_bug.cgi?id=1129443>.

=head1 SEE ALSO

L<ExtUtils::MakeMaker>, L<ExtUtils::MM>

=cut