πŸ“˜ Negation meta-operator ! in Perl 6

πŸ“˜ Negation meta-operator ! in Raku

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


The negating exclamation mark ! is used to create the next set of meta-operators. If it is prepended to the existing operator op, you get the operator that gives you the negated result !op.

say "no" if "abcd" !~~ "e";

Leave a Reply

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

Retype the CAPTCHA code from the image
Change the CAPTCHA codeSpeak the CAPTCHA code