command-line calculator?
Parv
parv at pair.com
Fri Jun 25 17:36:10 PDT 2004
in message <20040625183429.GA10616 at moo.holy.cow>,
wrote Parv thusly...
>
> Perl:
> perl -e 'print +(17 * 36)'
>
> awk:
> echo |awk '{print 17 * 36}'
Oh, in Rexx...
echo 'say 17 * 36 ' | rexx
...or...
rexx # Interpreter
say 17 * 36
^D # Ctrl-D
Just wondering out loud ... Is it not possible either in rexx-imc or
-regina to have something like the perl functionality (make rexx to
execute a string as if it were a valid statement/expression) ?
- Parv
--
More information about the freebsd-questions
mailing list