in reply to (jeffa) Re: Perl and C don't always mix well
in thread Perl and C don't always mix well
Turn that test around. If you write it:
then you are automatically told your mistake when you writeif (5 == $number) { # ... }
by accident. By contrast you are rather less happy if you write in the naive order and wound up with:if (5 = $number) { # ... }
which winds up being true rather more often than you would like...if ($number = 5) { # ... }
|
|---|