Hello wanna_code_perl,
Just a thought: Why not build your own Calculator?
Back in the '80s I used 'C' to build a calculator for common things I needed for system administration activities. Each time I'd be called upon to change/fix/... a different system (mostly AIX systems), I would port my calculator to the new system. This had lots of problems since the 'C' compilers were always changing and not always available, but all the systems had Perl. So after becoming more familiar with Perl, I slowly ported each calculator function into a small script I called 'calc.plx' that used the standard system Perl, which called itself to do the calculations as a long one liner.
The script grew to about 700 lines, and with a lot of comments, but it does exactly what I need it to do. and far exceeds what I could have done with the original 'C' calculator.
Since you are writing one-liners anyway, why not copy them into your 'calc.plx' and build a way to call them. You will be amazed at how much fun adding functions can get once you have your own foundation script.
Good Luck...Ed
"Well done is better than well said." - Benjamin Franklin
In reply to Re: Simple algebraic calculations
by flexvault
in thread Simple algebraic calculations
by wanna_code_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |