Permalink
Browse files

changed more 0 and 1 into True/False. Note, that 3 == '3b' fails.

  • Loading branch information...
1 parent 850c094 commit e8cc91e72f6daee097aa34984c74a0d69ed0c271 @timo timo committed Jan 25, 2012
Showing with 10 additions and 4 deletions.
  1. +10 −4 src/operators.pod
View
@@ -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<< <= >>

0 comments on commit e8cc91e

Please sign in to comment.