Jeff Borders wrote:
Hello,

I'm a total newbie with only a few programs under my belt.  Anyway, I
would like to create a command line calculator.  Like the one available
in python.

The python interpreter will accept 5+5 or 5 + 5.

I would like some ideas on how to parse the command line.  I can read it
in as STDIN, but then need to determine the two or more numbers and the
operators.


Perl allows you to cheat at this, perldoc -f eval....


http://danconia.org


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to