Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: regular expressions with !

by zigdon (Deacon)
on Sep 14, 2006 at 14:32 UTC ( [id://572930]=note: print w/replies, xml ) Need Help??


in reply to regular expressions with !

As others mentioned, you need to use either 'not' or '()' - since '!' has a higher order of precedence than '=~'. From perlop:
Operator Precedence and Associativity ... right ! ~ \ and unary + and - left =~ !~ ... right not

-- zigdon

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-19 10:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found