in reply to question about the Truth

Did you declare 'false' and 'true' as constants?
use constant false=>0; use constant true=>1; if (false) { print "I do always get printed...\n" } if (false==true) { print "..and even do I" }
Otherwise the barewords 'false' and 'true' are treated as strings. Now if you rewrite false==true as  false eq true, the second print will never be executed.

Replies are listed 'Best First'.
Re: Re: question about the Truth
by sH4ke (Initiate) on Jan 15, 2004 at 07:35 UTC
    Thank you for your reply. Yet another reason why one should always use 'perl -w'