This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update to Scalar-List-Utils-1.21 from CPAN
[perl5.git] / ext / List-Util / lib / List / Util / XS.pm
CommitLineData
2ff28616
GB
1package List::Util::XS;
2use strict;
3use vars qw($VERSION);
4use List::Util;
5
6$VERSION = "1.21"; # FIXUP
7$VERSION = eval $VERSION; # FIXUP
8
9sub _VERSION { # FIXUP
10 require Carp;
11 Carp::croak("You need to install Scalar-List-Utils with a C compiler to ensure the XS is compiled")
12 if defined $_[1];
13 $VERSION;
14}
15
161;
17__END__
18
19=head1 NAME
20
21List::Util::XS - Indicate if List::Util was compiled with a C compiler
22
23=head1 SYNOPSIS
24
25 use List::Util::XS 1.20;
26
27=head1 DESCRIPTION
28
29C<List::Util::XS> can be used as a dependency to ensure List::Util was
30installed using a C compiler and that the XS version is installed.
31
32During installation C<$List::Util::XS::VERSION> will be set to
33C<undef> if the XS was not compiled.
34
35=head1 SEE ALSO
36
37L<Scalar::Util>, L<List::Util>, L<List::MoreUtils>
38
39=head1 COPYRIGHT
40
41Copyright (c) 2008 Graham Barr <gbarr@pobox.com>. All rights reserved.
42This program is free software; you can redistribute it and/or
43modify it under the same terms as Perl itself.
44
45=cut