Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Reverse grep?

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

Lbh ebgngrq guvf grkg naq abj lbh pna ernq vg. Fb jung? :) -- Whreq

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://148659]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-25 04:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found