Array-Contains
view release on metacpan or search on metacpan
lib/Array/Contains.pm view on Meta::CPAN
From 5.42.0 onwards, this uses the new "any" keyword for higher performance. The API is Array::Contains shouldn't look any different to the caller, though. Just, maybe, a tiny bit faster.
=head1 FUNCTIONS
This module currently exports its only function by default:
=head2 contains()
C<contains()> takes one scalar and one array reference and returns true (1) if
the scalar is contained in the array. C<contains()> does NOT do recursive lookups,
but only looks into the root array.
=head1 SEE ALSO
L<List::Util>
=head1 AUTHOR
Rene Schickbauer, E<lt>cavac@cpan.orgE<gt>
=head1 COPYRIGHT AND LICENSE
( run in 0.466 second using v1.01-cache-2.11-cpan-64827b87656 )