You could also just drop into the debugger with perl -de0 and use that. Not as nice in that you've got to prefix things with x EXPR but then again you can do anything valid perl.
(Edit: If you're using bash or zsh for simple arithmetic you could use echo $(( EXPR )) without even involving perl; or you could just swap into your emacs window and use M-x calc . . .)
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: Simple CLI calculator based on Perl's eval()
by Fletch
in thread Simple CLI calculator based on Perl's eval()
by reisinge
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |