in reply to question about the Truth
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.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" }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: question about the Truth
by sH4ke (Initiate) on Jan 15, 2004 at 07:35 UTC |