Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by kcott (Archbishop)
on Mar 04, 2021 at 04:27 UTC ( [id://11129107]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    function perls () {
        eval "echo \`perl -T -Mstrict -Mwarnings -Mautodie=:all -E '
    ...
            say defined \$ev ? \"\$ev\" : \"$@\";
        '\`"
    }
    
  2. or download this
    $ perls 6*7
    42
    ...
    Number found where operator expected at (eval 6) line 1, near "*.5"
            (Missing operator before 5?)
    196***.5
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2024-03-28 09:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found