View Single Post
Old 02-27-2005, 04:23 PM   PM User | #4
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,045
Thanks: 8
Thanked 1,029 Times in 1,020 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
When using compares with strings,
also make sure you use "eq" and "ne" (equal and not-equal)
instead of ==

for strings:

if($string1 eq $string2){ print "they are equal.";}
if($string1 ne "orange"){ print "they are NOT equal.";}

for integers:

if($xpos == $ypos){ print "the two positions are equal.";}

I don't know if this helps with your question,
but just something to keep in mind.
mlseim is offline   Reply With Quote