These operators are very important so make sure that you get familiar with them. In this tutorial, you’ve learned some basic Perl operators. The only difference between these priorities and conventional algebra is that the prefix minus operator has a higher priority than the exponential operator. You will learn how to use logical operators in the conditional statements such as if, while and given. For operators of equal priority (the multiply and divide operators, for example), the left-to-right rule prevails. In the other words, it converts true to false or false to true. The logical ! operator inverts the value of the followed variable or expression. !$a performs logical NOT of the variable or expression.The logical || operator checks either a variable or expression is true. $a || $b performs logical OR of two variables or expressions. ![]() The logical
0 Comments
Leave a Reply. |