Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: 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 reply to Re: Reverse grep?
by Juerd
|
|