> if ($a = 20) {print "a is equal to 20.\n";}

        Actually, it is always going to be true. '=' is the assignment
operator, so $a is being set to 20 and '$a = 20' will always evaluate to 20
-- which is considered true. You need '==':

if ($a == 20) {print "a is equal to 20.\n";}

        ---Larry


+------------------------------------------------------------------------+
| Larry Coffin, G.P.H.                                     Watertown, MA |
| http://www.PointInfinity.com/lcoffin/        [EMAIL PROTECTED] |
+------------------------------------------------------------------------+

Actor:  "I'm a smash hit.  Why, yesterday during the last act, I had
        everyone glued in their seats!"
Oliver Herford: "Wonderful!  Wonderful!  Clever of you to think of
        it!"


-



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

Reply via email to