Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Simple Calculator

by jdhedden (Deacon)
on Jun 13, 2005 at 19:11 UTC ( [id://466257]=note: print w/replies, xml ) Need Help??


in reply to RE: Simple Calculator
in thread Simple Calculator

This can be done in a one-liner:
perl -ple '$_ = "> " . eval'
which you can add to your .bashrc file using:
alias calc='perl -ple '\''$_ = "> " . eval'\'''
You can exit the loop with ^D.

Remember: There's always one more bug.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-12-08 15:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (51 votes). Check out past polls.