develooper Front page | perl.perl5.porters | Postings from July 2012

[perl #33765] perlop: mention why 'print !!0' doesn't

From:
Jesse Luehrs via RT
Date:
July 6, 2012 12:44
Subject:
[perl #33765] perlop: mention why 'print !!0' doesn't
Message ID:
rt-3.6.HEAD-28836-1341603873-795.33765-14-0@perl.org
This was done as part of 1ca345ed. perlop now contains:

       Perl operators that return true or false generally return values
       that can be safely used as numbers.  For example, the relational
       operators in this section and the equality operators in the next
       one return 1 for true and a special version of the defined empty
       string, "", which counts as a zero but is exempt from warnings
       about improper numeric conversions, just as "0 but true" is.

-doy




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About