in reply to
How do I compare two strings?
$str1
eq
$str2
Comment on
Re: How do I compare two strings?
Select
or
Download
Code
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
.
[reply]
[d/l]
[select]
In Section
Seekers of Perl Wisdom