Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Invert grep match with qr// variable

by hv (Prior)
on Feb 06, 2024 at 18:27 UTC ( [id://11157583]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    grep !/$re/, @array;  # use // round $re to treat as a pattern match
    grep $_ !~ $re, @array;  # use a negating match
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-17 15:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found