Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Simple CLI calculator based on Perl's eval()

by Fletch (Chancellor)
on Mar 03, 2021 at 18:50 UTC ( #11129090=note: print w/replies, xml ) Need Help??


in reply to Simple CLI calculator based on Perl's eval()

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.

Replies are listed 'Best First'.
Re^2: Simple CLI calculator based on Perl's eval()
by LanX (Cardinal) on Mar 03, 2021 at 19:54 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11129090]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2021-04-10 21:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?