The stupid question is the question not asked | |
PerlMonks |
Re: How do I compare two strings?by gridlock (Novice) |
on Feb 21, 2004 at 04:36 UTC ( [id://330761]=note: print w/replies, xml ) | Need Help?? |
Depends on what kind of comparision:
Strings can be tested for the following Equality - the eq operator Inequality - the ne operator Greater Than - the gt operator Greater or Equal - the ge operator Less than - the lt operator Less of Equal - the le operator Syntax: $stringtest = ($string1 eq $string2); Try replacing eq with the other operators.
In Section
Seekers of Perl Wisdom
|
|