?^ is a logical negation operator. Please note that this is not a bitwise negation. First, the argument is converted to a Boolean value, and then the result is negated.
my $x = 10; my $y = ?^$x; say $y;Â Â Â Â Â Â # False say $y.WHAT;Â # (Bool)
Reading the Perl 6 sources and enjoying the new Perl 6 features
?^ is a logical negation operator. Please note that this is not a bitwise negation. First, the argument is converted to a Boolean value, and then the result is negated.
my $x = 10; my $y = ?^$x; say $y;Â Â Â Â Â Â # False say $y.WHAT;Â # (Bool)