On Thu, Aug 03, 2017 at 09:27:42PM +0200, hw wrote:
> 
> It is nonsense to logically negate a string, and it is nonsense to convert
> undefined values into 'false'.  Either are neither false, nor true.
> 
> For undefined values, there is no way of deciding whether they are true or 
> false
> because they are undefined.
> 
> When you convert undefined values to false, then you must also convert false
> to undefined values.  Logic dictates that otherwise undefined values are
> not equal to undefined values.  Yet perl claims that they are:
> 
> perl -e 'print "true\n" if(undef == undef);'
> perl -e 'print "true\n" if(0 == undef);'
> 
> Both is just wrong.  The value 0 is defined to the point where you can´t 
> define
> it any more.

If you try to fight against Perl, or any language, you will have an
unsatisfying experience.  The trick is to work with the language.  Then
programming becomes productive and enjoyable, the sun shines, ponies
frolic through meadows, and unicorns graze contentedly beneath rainbows.

-- 
Paul Johnson - p...@pjcj.net
http://www.pjcj.net

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to