Re: TRUE

Honza Pazdziora <[email protected]>
Newsgroups gmane.comp.lang.perl.fun
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.