List::Util::XS - Indicate if List::Util was compiled with a C compiler


Scalar-List-Utils documentation Contained in the Scalar-List-Utils distribution.

Index


Code Index:

NAME

Top

List::Util::XS - Indicate if List::Util was compiled with a C compiler

SYNOPSIS

Top

    use List::Util::XS 1.20;

DESCRIPTION

Top

List::Util::XS can be used as a dependency to ensure List::Util was installed using a C compiler and that the XS version is installed.

During installation $List::Util::XS::VERSION will be set to undef if the XS was not compiled.

SEE ALSO

Top

Scalar::Util, List::Util, List::MoreUtils

COPYRIGHT

Top


Scalar-List-Utils documentation Contained in the Scalar-List-Utils distribution.

package List::Util::XS;
use strict;
use vars qw($VERSION);
use List::Util;

$VERSION = "1.23";           # FIXUP
$VERSION = eval $VERSION;    # FIXUP

sub _VERSION { # FIXUP
  require Carp;
  Carp::croak("You need to install Scalar-List-Utils with a C compiler to ensure the XS is compiled")
    if defined $_[1];
  $VERSION;
}

1;
__END__