Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

say @a === @a outputs Bool::True rather than 1.

  • Loading branch information...
commit 850c0944fdc7e40e0c9a88897a45c1fdf3c5c162 1 parent eb5b12d
@timo timo authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/operators.pod
View
10 src/operators.pod
@@ -521,16 +521,16 @@ equivalent when compared with C<===>:
my @a = 1, 2, 3;
my @b = 1, 2, 3;
- say @a === @a; # 1
- say @a === @b; # 0
+ say @a === @a; # Bool::True
+ say @a === @b; # Bool::False
# these use identity for value
- say 3 === 3 # 1
- say 'a' === 'a'; # 1
+ say 3 === 3 # Bool::True
+ say 'a' === 'a'; # Bool::True
my $a = 'a';
- say $a === 'a'; # 1
+ say $a === 'a'; # Bool::True
=end programlisting

0 comments on commit 850c094

Please sign in to comment.
Something went wrong with that request. Please try again.