Your snippet works for me with the current development version of rakudo under linux.
Could you please try to build the latest rakudo from source and see if it still fails?
Also please add this line after the prompt:
say $num.PARROT;
and tell me what it prints.
In reply to Re: perl6: problem with prompt
by moritz
in thread perl6: problem with prompt
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |