| EB::Expression - Evaluate arithmetic/string expressions |
EB::Expression - Evaluate arithmetic/string expressions
use strict; use EB::Expression;
my $ArithEnv = new EB::Expression;
my $tree = $ArithEnv->Parse('( 1 + 2 ) *3'); ...
print $ArithEnv->EvalToScalar($tree);
This is stripped version of the Math::Expression manpage.
Alain D D Williams <addw@phcomp.co.uk> wrote the Math::Expression manpage.
Johan Vromans <jvromans@squirrel.nl> stripped it for use by the EekBoek program, see http://www.squirrel.nl/eekboek.
*** Original Copyright Notice ***
Copyright (c) 2003 Parliament Hill Computers Ltd/Alain D D Williams. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Please see the module source for the full copyright.
| EB::Expression - Evaluate arithmetic/string expressions |