Yes, Perl can do calculations. Perl has all the standard mathematical operators; + (plus), - (minus), * (times), / (divide), and so on.
If you want it to calculate PI to 300 digits, Perl is there for you too, but you've got to learn to program. A good place to start learning Perl is to read "Learning Perl", published by O'Reilly & Associates. You'll find it in most larger bookstores, as well as Amazon.
| [reply] |
In addition to the excellent book that davido suggested, you might also find Simon Cozens' Beginning Perl, which is available free online, useful. Chapter 2: Working with Simple Values (PDF format) explains data types, variables and operators and is a good introduction to performing calculations using Perl.
--
Rozallin J. Thompson | [reply] |
*
+
/
-
and Math::Complex Perl modules also do the engineering, science, and mathematics
| [reply] [d/l] |
Seriously, what about the opposite question:
Is there any programming language that can't?
Mr. Lee | [reply] |