> -----Original Message-----
> From: Chris Knipe [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 10, 2002 4:08 PM
> To: [EMAIL PROTECTED]
> Subject: Am I being stupid here... or?
> 
> 
> Lo all,
> 
> Very stupid it must be, but I can't see what I'm doing wrong here... 
> 
> The following if statement, always returns true (prints "a"), 
> regardless
> of what the value of $SiteType is... 
> 
> #!/usr/bin/perl
> 
> $SiteType = "something";
> 
> if ($SiteType == "notsomething") {
>   print "a";
> }
> 
> Am I doing something really arbly stupid here, did I miss anything?

Use eq for string comparison. == is for numeric comparison.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to