summaryrefslogtreecommitdiff
path: root/ext/List-Util/XS.pp
blob: 6521f632cdd485c5dd3529e6602aa53686d79b0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package List::Util::XS;
use strict;
use vars qw($VERSION);

$VERSION = undef;

sub VERSION {
  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__

=head1 NAME

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

=head1 SYNOPSIS

    use List::Util::XS 1.20;

=head1 DESCRIPTION

B<*** This instalation does not have XS installed ***>

C<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 C<$List::Util::XS::VERSION> will be set to
C<undef> if the XS was not compiled.

=head1 SEE ALSO

L<Scalar::Util>, L<List::Util>, L<List::MoreUtils>

=head1 COPYRIGHT

Copyright (c) 2008 Graham Barr <gbarr@pobox.com>. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.

=cut