Daniel Carrera wrote
Ok, try again:% perl6 rpn.pl "2 2+" 2 2
You can probably fix that with a different split() line. I tried using <ws> instead of \s+ but the program just hangs forever.
I also tried a more complex expression, and the calculator didn't like it: % perl6 rpn.pl "5 4 + 3 / 5 3 - *" Error parsing expression near * :-( Daniel.