| String Operator | Purpose |
| x | Returns a string consisting of the string on the left of the operand, repeated the number of times of the right operand. |
| . | Concatenates the two strings on both sides of the operator. |
| eq | Returns True if the two operands are equivalent, False otherwise. |
| ne | Returns True if the two operands are not equal, False otherwise. |
| le | Returns True if the operand on the left is stringwise less than the operand on the right of the operator. Returns False otherwise. |
| lt | Returns True if the operand on the left is stringwise less than or equal to the operand on the right of the operator. Returns False otherwise. |
| ge | Returns True if the operand on the left is stringwise greater than or equal to the operand on the right of the operator. Returns False otherwise. |
| gt | Returns True if the operand on the left is stringwise greater than the operand on the right of the operator. Returns False otherwise. |
| cmp | Returns -1, 0, or 1 if the left operand is stringwise less than, equal to, or greater than the right operand. |
| , | Evaluates the left operand, the evaluates the right operand. It returns the result of the right operand. |
| ++ | Increments the string by one alphabetic value. |
2014年5月14日 星期三
[Perl]字串運算子
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言