How many ways to compare two strings in perl?
Method 1:
cmp - Compare
Method 2:
eq - Equal to
Method 3:
ne - Not-Equal to
Method 4:
Lt - Less than
Method 5:
le - Less than or equal to
Method 6:
gt - Greater than
Method 7:
ge - Greater than or equal to
Labels: perl if comparison, perl if string comparison, perl string compare operators, perl string equality operator, perl string logical operators, perl string test operators, string comparison operators in perl
0 Comments:
Post a Comment
Note: only a member of this blog may post a comment.
<< Home