On Wed, Jan 21, 2004 at 06:43:26PM +0200, Gaal Yahas wrote: > > But more to the point, how do you use your TRUE and FALSE? Suppose you > want to test the return value of this sub: > > sub returns_a_true_value { 8.2 } > > Would you do "if (returns_a_true_value() eq TRUE)"? "== TRUE"? > Neither would work, and you can just do "if (returns_a_true_value())"
But 8.2 is not TRUE value. If returns_a_true_value is supposed to return a true true value, it should end with return TRUE; shouldn't it? -- ------------------------------------------------------------------------ Honza Pazdziora | [EMAIL PROTECTED] | http://www.fi.muni.cz/~adelton/ .project: Perl, mod_perl, DBI, Oracle, large Web systems, XML/XSL, ... Only self-confident people can be simple.