Skip to content

Commit

Permalink
changed more 0 and 1 into True/False. Note, that 3 == '3b' fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
timo committed Jan 25, 2012
1 parent 850c094 commit e8cc91e
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/operators.pod
Original file line number Diff line number Diff line change
Expand Up @@ -559,13 +559,19 @@ convert an object to a number, Perl will use the default of C<0>.

=begin programlisting

say 1 == 1.0; # 1
say 1 == '1'; # 1
say 1 == '2'; # 0
say 3 == '3b' # 1
say 1 == 1.0; # Bool::True
say 1 == '1'; # Bool::True
say 1 == '2'; # Bool::False
say 3 == '3b'; # fails

=end programlisting

=for author

maybe explain the failure in 3 == '3b' more thoroughly?

=end for

X<< < >>
X<< operator, < >>
X<< <= >>
Expand Down

0 comments on commit e8cc91e

Please sign in to comment.