In Perl (or MacPerl), we have EVAL built-in function. Suppose we have a

string of arithmetic expression like "6+5" (or something more complex), we

can evaluate the value of the string simply by:

$str_a = "6+5";

$int_b = EVAL ($str_a);

PRINT $int_b;

The output would be 11.

Do we have equivalent function in RB? If not, any suggestion of

implementation (even for more complex arithmetic expressions)?

Thanks.

/TokiOU

Sent via Deja.com http://www.*-*-*.com/

Before you buy.