in reply to How do I compare two strings?

$str1eq $str2

Replies are listed 'Best First'.
Re^2: How do I compare two strings?
by dsheroh (Monsignor) on Dec 15, 2015 at 08:16 UTC
    eq is the string equivalent of ==, not of <=>.

    The string equivalent of <=> is cmp.