2. put the following lines into ~/.bash_profile
cal() {
if [ $# -lt 1 ]; then
echo "Please follow an expression, such as (42.5/1.7)*6."
else
perl -le "use Math::Calculus::Expression;my \$exp =
Math::Calculus::Expression->new;\$exp->setExpression('$1');print \$exp-
>evaluate();"