Don't ask to ask, just ask | |
PerlMonks |
Re: Simple CLI calculator based on Perl's eval()by roho (Bishop) |
on Mar 05, 2021 at 16:20 UTC ( [id://11129168]=note: print w/replies, xml ) | Need Help?? |
I've been using the following on Windows for years (I named it "pc.bat"). Note: For typing convenience I replace 'x' with '*' for multiplication and perform addition on two or more numbers by separating them with spaces. I do not enter spaces around operators ('*', '/', etc.).
Examples: pc 2x4 (Total = 8) pc 1 2 (Total = 3)
"It's not how hard you work, it's how much you get done."
In Section
Cool Uses for Perl
|
|