Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: How to make sure no elements from @array are inside $scalar

by Loops (Curate)
on Nov 15, 2014 at 11:48 UTC ( #1107303=note: print w/replies, xml ) Need Help??


in reply to Re^2: How to make sure no elements from @array are inside $scalar
in thread How to make sure no elements from @array are inside $scalar

Yes, you can use "and" to much the same effect in this case. In fact it would stop a warning if the match failed and $1 was left undefined. And that's because the comma operator does not short circuit as "and" does; both expressions will be evaluated whether the first is true or false. But it can be useful.

  • Comment on Re^3: How to make sure no elements from @array are inside $scalar

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2021-04-11 21:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?