Think about Loose Coupling | |
PerlMonks |
Re: Reverse grep?by Juerd (Abbot) |
on Mar 01, 2002 at 19:39 UTC ( [id://148659]=note: print w/replies, xml ) | Need Help?? |
For information about Perl's grep command, use perldoc -f grep. To reverse the condition, negate the condition: grep { !( expression ) } LIST (Using a block is easier in many cases, and read perlop to find out when you can leave out the parens). To reverse grep's output, use reverse: reverse grep BLOCK LIST or reverse grep EXPR, LIST
In Section
Seekers of Perl Wisdom
|
|