5

¬ を論理否定演算子にしようとしています。

¬ True;

multi sub prefix:<¬> ($n) {
        return not $n;
}

上記のプログラムを実行すると、次のエラーが返されます。

$ perl6 test.pl6  
===SORRY!=== Error while compiling /home/devXYZ/test.pl6 Bogus statement at /home/devXYZ/test.pl6:1
------> <BOL>⏏¬ True;
expecting any of:
    prefix
    term

誰が原因が何であるか知っていますか?

4

1 に答える 1