Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

difference between a !~ b and !(a=~b)

$
0
0
Hi all, I wrote a conditional like this: `if !( A =~ B )`. It is not working, because I should have written `if A !~ B`. Fine. However, I wasn't getting any syntax error or anything, so it must have been doing something. As far as I understand, the first form should also work, shouldn't it? What is the difference? Why wasn't it working? Thank you

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>