1List::MoreUtils::XS(3)User Contributed Perl DocumentationList::MoreUtils::XS(3)
2
3
4
6 List::MoreUtils::XS - Provide compiled List::MoreUtils functions
7
9 use List::MoreUtils::XS (); # doesn't export anything
10 use List::MoreUtils ':all'; # required to import functions
11
12 my @procs = get_process_stats->fetchall_array;
13 # sort by ppid, then pid
14 qsort { $a->[3] <=> $b->[3] or $a->[2] <=> $b->[2] } @procs;
15 while( @procs ) {
16 my $proc = shift @procs;
17 my @children = equal_range { $_->[3] <=> $proc->[2] } @procs;
18 }
19
20 my @left = qw(this is a test);
21 my @right = qw(this is also a test);
22 my %rlinfo = listcmp @left, @right;
23
24 # on unsorted
25 my $i = firstidx { $_ eq 'yeah' } @foo;
26 # on sorted - always first, but might not be 'yeah'
27 my $j = lower_bound { $_ cmp 'yeah' } @bar;
28 # on sorted - any of occurrences, is surely 'yeah'
29 my $k = bsearchidx { $_ cmp 'yeah' } @bar;
30
32 List::MoreUtils::XS is a backend for List::MoreUtils. Even if it's
33 possible (because of user wishes) to have it practically independent
34 from List::MoreUtils, it technically depend on "List::MoreUtils". Since
35 it's only a backend, the API is not public and can change without any
36 warning.
37
39 List::Util, List::AllUtils
40
42 Jens Rehsack <rehsack AT cpan.org>
43
44 Adam Kennedy <adamk@cpan.org>
45
46 Tassilo von Parseval <tassilo.von.parseval@rwth-aachen.de>
47
49 Some parts copyright 2011 Aaron Crane.
50
51 Copyright 2004 - 2010 by Tassilo von Parseval
52
53 Copyright 2013 - 2017 by Jens Rehsack
54
55 All code added with 0.417 or later is licensed under the Apache
56 License, Version 2.0 (the "License"); you may not use this file except
57 in compliance with the License. You may obtain a copy of the License at
58
59 http://www.apache.org/licenses/LICENSE-2.0
60
61 Unless required by applicable law or agreed to in writing, software
62 distributed under the License is distributed on an "AS IS" BASIS,
63 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
64 implied. See the License for the specific language governing
65 permissions and limitations under the License.
66
67 All code until 0.416 is licensed under the same terms as Perl itself,
68 either Perl version 5.8.4 or, at your option, any later version of Perl
69 5 you may have available.
70
71
72
73perl v5.36.0 2022-07-22 List::MoreUtils::XS(3)