Perl 5 version 8.0 documentation

ExtUtils::MM_Any

NAME

ExtUtils::MM_Any - Platform agnostic MM methods

SYNOPSIS

  1. FOR INTERNAL USE ONLY!
  2. package ExtUtils::MM_SomeOS;
  3. # Temporarily, you have to subclass both. Put MM_Any first.
  4. require ExtUtils::MM_Any;
  5. require ExtUtils::MM_Unix;
  6. @ISA = qw(ExtUtils::MM_Any ExtUtils::Unix);

DESCRIPTION

FOR INTERNAL USE ONLY!

ExtUtils::MM_Any is a superclass for the ExtUtils::MM_* set of modules. It contains methods which are either inherently cross-platform or are written in a cross-platform manner.

Subclass off of ExtUtils::MM_Any and ExtUtils::MM_Unix. This is a temporary solution.

THIS MAY BE TEMPORARY!

Inherently Cross-Platform Methods

These are methods which are by their nature cross-platform and should always be cross-platform.

File::Spec wrappers DEPRECATED

The following methods are deprecated wrappers around File::Spec functions. They exist from before File::Spec did and in fact are from which File::Spec sprang.

They are all deprecated. Please use File::Spec directly.

  • canonpath
  • catdir
  • catfile
  • curdir
  • file_name_is_absolute
  • path
  • rootdir
  • updir

Thought To Be Cross-Platform Methods

These are methods which are thought to be cross-platform by virtue of having been written in a way to avoid incompatibilities.

  • test_via_harness
    1. my $command = $mm->test_via_harness($perl, $tests);

    Returns a $command line which runs the given set of $tests with Test::Harness and the given $perl.

    Used on the t/*.t files.

  • test_via_script
    1. my $command = $mm->test_via_script($perl, $script);

    Returns a $command line which just runs a single test without Test::Harness. No checks are done on the results, they're just printed.

    Used for test.pl, since they don't always follow Test::Harness formatting.

AUTHOR

Michael G Schwern <schwern@pobox.com> with code from ExtUtils::MM_Unix and ExtUtils::MM_Win32.