Equality Operators and String Values : Comparison Operators « Language Basics « Perl
- Perl
- Language Basics
- Comparison Operators
Equality Operators and String Values
Operator Example Meaning
eq $str1 eq $str2 $str1 is equal to $str2
ne $str1 ne $str2 $str1 is not equal to $str2
cmp $str1 cmp $str2 $str1 is compared to $str2, with a signed return
Related examples in the same category