Mega Code Archive

 
Categories / Perl / Language Basics
 

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