Posted by: Vaida Bogdan
on March 12, 2008 12:18 PM
A script I use from the net: calcme "30*27.3"
#!/usr/bin/perl
# Usage calcme <string_to_calculate> [<output_format>]
# Input is a string like (10+3)/7 or "(10 + 3) / 7"
# Output is the calculated result of the string
# Optional formatting can supplied as 2nd parameter.
Fast, flexible, calculating from the command line
Posted by: Vaida Bogdan on March 12, 2008 12:18 PM#