package List::MoreUtils::XS; use 5.006; use strict; use warnings; use vars qw{$VERSION @ISA}; BEGIN { $VERSION = '0.406'; # Load the XS at compile-time so that redefinition warnings will be # thrown correctly if the XS versions of part or indexes loaded my $ldr = <can(\"$_\") or *$_ = \\&List::MoreUtils::PP::$_;" } qw(any all none notall any_u all_u none_u notall_u true false firstidx lastidx insert_after insert_after_string apply indexes after after_incl before before_incl firstval lastval each_array each_arrayref pairwise natatime mesh uniq minmax part bsearch firstres lastres sort_by nsort_by _XScompiled); my $pp_stuff = join( "\n", "use List::MoreUtils::PP;", "package List::MoreUtils;", @pp_imp ); eval $pp_stuff; die $@ if $@; } =pod =head1 NAME List::MoreUtils::XS - Provide compiled List::MoreUtils functions =head1 SYNOPSIS BEGIN { delete $ENV{LIST_MOREUTILS_PP}; } use List::MoreUtils ...; =head1 SEE ALSO L, L =head1 AUTHOR Jens Rehsack Erehsack AT cpan.orgE Adam Kennedy Eadamk@cpan.orgE Tassilo von Parseval Etassilo.von.parseval@rwth-aachen.deE =head1 COPYRIGHT AND LICENSE Some parts copyright 2011 Aaron Crane. Copyright 2004 - 2010 by Tassilo von Parseval Copyright 2013 - 2015 by Jens Rehsack This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.4 or, at your option, any later version of Perl 5 you may have available. =cut 1;