Perl::Critic::Policy::Reneeb::ProhibitGrepToGetFirstFoundElement - Use List::Utils 'first' instead of grep if you want to get the first found element
version 2.05
To get the first element of a list that matches some criteria, List::Util's first should be used instead of grep.
first
grep
Renee Baecker <reneeb@cpan.org>
This software is Copyright (c) 2015 by Renee Baecker.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Perl::Critic::RENEEB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::Critic::RENEEB
CPAN shell
perl -MCPAN -e shell install Perl::Critic::RENEEB
For more information on module installation, please visit the detailed CPAN module installation guide.