Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: regex return true instead of false (precedence)

by LanX (Saint)
on Aug 26, 2019 at 16:59 UTC ( [id://11105073]=note: print w/replies, xml ) Need Help??


in reply to Re^2: regex return true instead of false (precedence)
in thread regex return true instead of false

I agree that it's better to over use brackets than forgetting them.

On the other hand there's a good reason why Perl has that many operators.

And, not, or won't bite you in Boolean expressions because they have the lowest precedence. (But I use brackets when combining them, I need a complicated mnemonic to remember that and has higher precedence than or)

And !~ is really underused.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

  • Comment on Re^3: regex return true instead of false (precedence)

Log In?
Username:
Password:

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

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

    No recent polls found