RPN calculator FIXED NO REALLY by ais523

$\=$/;$/=$];$_=<>;s/mod/%/;s'
0 /');$_.=("\nERR"';s'
');print;
'g;s'^| ');push@ARGV,($_='gm;s.[-%+^*/].(\$_=pop,(pop)$&\$_).g;s/^\)//gm;s/\^/**/;eval

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page