Acme-CPANModules-RemovingElementsFromArray
view release on metacpan or search on metacpan
"IPC::Open3" : "0",
"Test::More" : "0"
}
},
"x_lists" : {
"x_lists" : {
"Array::KeepGrepped" : "0",
"Array::OverlapFinder" : "0",
"List::Util" : "0",
"List::Util::Uniq" : "0",
"List::Util::mapsplice" : "0",
"List::Util::sglice" : "0"
}
},
"x_mentions" : {
"x_mentions" : {
"Array::KeepGrepped" : "0",
"Array::OverlapFinder" : "0",
"List::Util" : "0",
"List::Util::Uniq" : "0",
"List::Util::mapsplice" : "0",
"List::Util::sglice" : "0"
}
}
},
"provides" : {
"Acme::CPANModules::RemovingElementsFromArray" : {
"file" : "lib/Acme/CPANModules/RemovingElementsFromArray.pm",
"version" : "0.003"
},
"Acme::CPANModules::RemovingItemsFromList" : {
Variations of "grep"
Some modules offer variations of "grep". For example, Array::KeepGrepped
keeps the elements that are filtered out instead those that match the
grep expression. List::Util::sglice offers "sglice", which removes
elements that matches user-supplied code, except that "sglice" (like
"splice") allows you to specify a limit to the number of elements to
remove.
mapslice
List::Util::mapsplice offers "mapsplice", which removes a slice of array
but lets you replace each element with new elements using Perl code.
ACME::CPANMODULES ENTRIES
List::Util
Author: PEVANS <https://metacpan.org/author/PEVANS>
List::Util::Uniq
Author: PERLANCAR <https://metacpan.org/author/PERLANCAR>
Array::OverlapFinder
Author: PERLANCAR <https://metacpan.org/author/PERLANCAR>
Array::KeepGrepped
Author: ONEONETWO <https://metacpan.org/author/ONEONETWO>
List::Util::sglice
Author: PERLANCAR <https://metacpan.org/author/PERLANCAR>
List::Util::mapsplice
FAQ
What is an Acme::CPANModules::* module?
An Acme::CPANModules::* module, like this module, contains just a list
of module names that share a common characteristics. It is a way to
categorize modules and document CPAN. See Acme::CPANModules for more
details.
What are ways to use this Acme::CPANModules module?
Aside from reading this Acme::CPANModules module's POD documentation,
lib/Acme/CPANModules/RemovingElementsFromArray.pm view on Meta::CPAN
arrays and optionally remove them.
**Variations of `grep`**
Some modules offer variations of `grep`. For example, <pm:Array::KeepGrepped>
keeps the elements that are filtered out instead those that match the grep
expression. <pm:List::Util::sglice> offers `sglice`, which removes elements that
matches user-supplied code, except that `sglice` (like `splice`) allows you to
specify a limit to the number of elements to remove.
**mapslice**
<pm:List::Util::mapsplice> offers `mapsplice`, which removes a slice of array
but lets you replace each element with new elements using Perl code.
MARKDOWN
'x.app.cpanmodules.show_entries' => 0,
};
Acme::CPANModulesUtil::Misc::populate_entries_from_module_links_in_description;
1;
# ABSTRACT: List of modules to help remove elements from array
lib/Acme/CPANModules/RemovingElementsFromArray.pm view on Meta::CPAN
arrays and optionally remove them.
B<< Variations of C<grep> >>
Some modules offer variations of C<grep>. For example, L<Array::KeepGrepped>
keeps the elements that are filtered out instead those that match the grep
expression. L<List::Util::sglice> offers C<sglice>, which removes elements that
matches user-supplied code, except that C<sglice> (like C<splice>) allows you to
specify a limit to the number of elements to remove.
B<mapslice>
L<List::Util::mapsplice> offers C<mapsplice>, which removes a slice of array
but lets you replace each element with new elements using Perl code.
=head1 ACME::CPANMODULES ENTRIES
=over
=item L<List::Util>
Author: L<PEVANS|https://metacpan.org/author/PEVANS>
lib/Acme/CPANModules/RemovingElementsFromArray.pm view on Meta::CPAN
Author: L<PERLANCAR|https://metacpan.org/author/PERLANCAR>
=item L<Array::KeepGrepped>
Author: L<ONEONETWO|https://metacpan.org/author/ONEONETWO>
=item L<List::Util::sglice>
Author: L<PERLANCAR|https://metacpan.org/author/PERLANCAR>
=item L<List::Util::mapsplice>
=back
=head1 FAQ
=head2 What is an Acme::CPANModules::* module?
An Acme::CPANModules::* module, like this module, contains just a list of module
names that share a common characteristics. It is a way to categorize modules and
document CPAN. See L<Acme::CPANModules> for more details.
lib/Acme/CPANModules/RemovingItemsFromList.pm view on Meta::CPAN
arrays and optionally remove them.
B<< Variations of C<grep> >>
Some modules offer variations of C<grep>. For example, L<Array::KeepGrepped>
keeps the elements that are filtered out instead those that match the grep
expression. L<List::Util::sglice> offers C<sglice>, which removes elements that
matches user-supplied code, except that C<sglice> (like C<splice>) allows you to
specify a limit to the number of elements to remove.
B<mapslice>
L<List::Util::mapsplice> offers C<mapsplice>, which removes a slice of array
but lets you replace each element with new elements using Perl code.
=head1 ACME::CPANMODULES ENTRIES
=over
=item L<List::Util>
Author: L<PEVANS|https://metacpan.org/author/PEVANS>
lib/Acme/CPANModules/RemovingItemsFromList.pm view on Meta::CPAN
Author: L<PERLANCAR|https://metacpan.org/author/PERLANCAR>
=item L<Array::KeepGrepped>
Author: L<ONEONETWO|https://metacpan.org/author/ONEONETWO>
=item L<List::Util::sglice>
Author: L<PERLANCAR|https://metacpan.org/author/PERLANCAR>
=item L<List::Util::mapsplice>
=back
=head1 FAQ
=head2 What is an Acme::CPANModules::* module?
An Acme::CPANModules::* module, like this module, contains just a list of module
names that share a common characteristics. It is a way to categorize modules and
document CPAN. See L<Acme::CPANModules> for more details.
t/00-compile.t view on Meta::CPAN
use IO::Handle;
open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!";
my @warnings;
for my $lib (@module_files)
{
# see L<perlfaq8/How can I capture STDERR from an external command?>
my $stderr = IO::Handle->new;
diag('Running: ', join(', ', map { my $str = $_; $str =~ s/'/\\'/g; q{'} . $str . q{'} }
$^X, @switches, '-e', "require q[$lib]"))
if $ENV{PERL_COMPILE_TEST_DEBUG};
my $pid = open3($stdin, '>&STDERR', $stderr, $^X, @switches, '-e', "require q[$lib]");
binmode $stderr, ':crlf' if $^O eq 'MSWin32';
my @_warnings = <$stderr>;
waitpid($pid, 0);
is($?, 0, "$lib loaded ok");
shift @_warnings if @_warnings and $_warnings[0] =~ /^Using .*\bblib/
( run in 0.475 second using v1.01-cache-2.11-cpan-49f99fa48dc )