πŸ“˜ Universal comparison operator =:= in Perl 6

πŸ“˜ Universal comparison operator =:= in Raku

N. B. Perl 6 has been renamed to Raku. Click to read more.


=:= is the operator to check if the operands refer to the same object. A Boolean value is returned. The operator is called the container identity operator.

my $x = 42;
my $y := $x;Β 

say $x =:= $y; # True
say $y =:= $x; # True

Leave a Reply

Your email address will not be published. Required fields are marked *