Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by Marshall (Canon)
on Aug 27, 2019 at 23:27 UTC ( [id://11105149]=note: print w/replies, xml ) Need Help??


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

but it's also not equivalent to the first: Quite correct...I forgot to change the unless() to a just if(). Updated my post.

Don't do X if A,B,C are all false <- this is the original unless statement
this the same: Do X if any of A,B,C are true (X doesn't happen if A,B,C are all false).

I don't think there is anything truly controversial here. I would also agree if the code has been working and this is a modification, I'd leave it alone (as we see its easy to make a mistake with all these Not's!). If the code is still in initial development, then simplifying this convoluted loop condition is something I'd seriously consider.

  • Comment on Re^9: 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://11105149]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found