develooper Front page | perl.perl5.porters | Postings from November 2000

Why "" for false?

Thread Next
Mark-Jason Dominus
November 14, 2000 09:39
Why "" for false?
Message ID:

Prior to Perl 5.000, the return value from the == operator was 1 for
true and 0 for false.  

Starting in Perl 5.000, the resturn value for false comparisons was no
longer 0; it was instead "".

Does anyone remember why this change was made?

Mark-Jason Dominus 	  			       
I am boycotting Amazon. See for details.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About