Learn Perl logical operator and, or not with code examples Operator Precedence and Associativity.
Perl provide an match operators =~ !~
=~
!~