411 REFERENCE · Wikibooks
Perl Programming/Keywords/grep
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Perl goto gt Keywords
The grep keyword
The grep function Evaluates the BLOCK or EXPRESSION for each element of LIST by setting locally $_ to each element, and returns the list value consisting of those elements for which the expression evaluated to true. In scalar context, it returns the number of times the expression was true.
Syntax
grep BLOCK LIST
grep EXPRESSION, LIST
Perl goto gt Keywords