?^ 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)
Science, Programming, Electronics, Languages
N. B. Perl 6 has been renamed to Raku. Click to read more.
?^ 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)