If you're testing on
TRUE or
FALSE, use
==.
You should check
What is true and false in Perl? on the boolean topic.
Basically true is everything except 0, "" (empty string), undef (or statements resulting in any of the previous).
Also check
perlop on when to use
eq and when to use
==. True values can be tested without actually supplying an
eq or
== operator.
if ($truevalue) { print 'foo'; }
Update:Removed dup info
Greetz
Beatnik
... Quidquid perl dictum sit, altum viditur.