![]() Returns -1, 0, or 1 depending on whether the left argument is stringwise less than, equal to, or greater than the right argument. Returns true if the left argument is stringwise not equal to the right argument. ![]() Returns true if the left argument is stringwise equal to the right argument. Returns true if the left argument is stringwise greater than or equal to the right argument. What is a side effect of an expression, we will define a little later, but for now we will focus on the concept of 'expression'. A simple operator is an expression that ends with a semicolon separator ' ', and that is evaluated solely for its side effect. Returns true if the left argument is stringwise less than or equal to the right argument. Operators in Perl can be simple or composite. ![]() Returns true if the left argument is stringwise greater than the right argument. ![]() Returns true if the left argument is stringwise less than the right argument. Assume variable $a holds "abc" and variable $b holds "xyz" then, let's check the following string, equality operators − Sr.No. Assume variable $a holds 10 and variable $b holds 20 then, let's check the following numeric equality operators available in Perl − Sr.No.Ĭhecks if the value of two operands are equal or not, if yes then condition becomes true.Ĭhecks if the value of two operands are equal or not, if values are not equal then the condition becomes true.Ĭhecks if the value of two operands are equal or not, and returns -1, 0, or 1 depending on whether the left argument is numerically less than, equal to, or greater than the right argument.Ĭhecks if the value of the left operand is greater than the value of right operand, if yes then condition becomes true.Ĭhecks if the value of the left operand is greater than or equal to the value of right operand, if yes then condition becomes true.Ĭhecks if the value of the left operand is less than or equal to the value of right operand, if yes then condition becomes true.īelow is a list of equity operators. These are also called relational operators in Perl. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |