How do I compare two strings in Perl? -


How do I compare two strings in Perl?

I'm learning Perl, I had this basic question seen on stack overflow and I did not get any good answer, so I thought I would ask.

lt , gt , eq , ne , and cmp as appropriate for the string Code> use comparison:

binary eq return is correct if the left argument stringing is equal to the right logic.

Binary ne returns true if the left argument stringing is not equal to the right logic.

The binary cmp depends on return -1, 0 or 1, that the left argument is less than stringwise, or more than the exact or true argument.

Binary ~~ does a smartmatch between its arguments. ...

lt , take , ge , gt and cmp If any legacy uses the locale (but ') is in effect, then use the specified order (sort order) specified by the locale. See . Do not mix it with Unicode, only with legacy binary encoding. Provide more powerful solutions for standard and module collation problems.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -